standardnotes-server/docker-compose.dev.yml

63 lines
1.6 KiB
YAML
Raw Normal View History

services:
2023-02-03 10:26:06 +00:00
server:
build: .
env_file: .env
2023-02-06 12:35:58 +00:00
container_name: server-self-hosted
2023-02-06 05:52:11 +00:00
ports:
- ${EXPOSED_PORT}:3000
- ${EXPOSED_FILES_SERVER_PORT}:3104
2023-02-03 10:26:06 +00:00
volumes:
- ./logs:/var/lib/server/logs
networks:
- standardnotes_self_hosted
2023-02-03 10:26:06 +00:00
2023-02-06 12:35:58 +00:00
localstack:
image: localstack/localstack:1.3
container_name: localstack-self-hosted
expose:
- 4566
restart: unless-stopped
environment:
- SERVICES=sns,sqs
- DOCKER_HOST=unix:///var/run/docker.sock
- HOSTNAME_EXTERNAL=localstack
- LS_LOG=warn
volumes:
- ./docker/localstack_bootstrap.sh:/etc/localstack/init/ready.d/localstack_bootstrap.sh
- /var/run/docker.sock:/var/run/docker.sock
networks:
- standardnotes_self_hosted
2023-02-06 12:35:58 +00:00
db:
2023-02-03 10:26:06 +00:00
image: mysql:8
2023-02-06 12:35:58 +00:00
container_name: db-self-hosted
environment:
MYSQL_DATABASE: '${DB_DATABASE}'
MYSQL_USER: '${DB_USERNAME}'
MYSQL_PASSWORD: '${DB_PASSWORD}'
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
expose:
2023-02-06 05:52:11 +00:00
- 3306
restart: unless-stopped
2023-02-07 08:35:29 +00:00
command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci
volumes:
- ./data/mysql:/var/lib/mysql
- ./data/import:/docker-entrypoint-initdb.d
networks:
- standardnotes_self_hosted
cache:
image: redis:6.0-alpine
2023-02-06 12:35:58 +00:00
container_name: cache-self-hosted
volumes:
- ./data/redis/:/data
expose:
2023-02-06 05:52:11 +00:00
- 6379
restart: unless-stopped
networks:
- standardnotes_self_hosted
networks:
standardnotes_self_hosted:
name: standardnotes_self_hosted