standardnotes-server/docker-compose.yml

50 lines
1.3 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
2023-02-03 10:26:06 +00:00
volumes:
- ./logs:/var/lib/server/logs
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
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
command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8 --collation-server=utf8_general_ci
volumes:
- ./data/mysql:/var/lib/mysql
- ./data/import:/docker-entrypoint-initdb.d
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