2022-06-24 13:18:41 +00:00
|
|
|
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-07 06:35:10 +00:00
|
|
|
- ${EXPOSED_FILES_SERVER_PORT}:3104
|
2023-02-03 10:26:06 +00:00
|
|
|
volumes:
|
|
|
|
- ./logs:/var/lib/server/logs
|
2023-02-07 06:35:10 +00:00
|
|
|
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
|
2023-02-07 06:35:10 +00:00
|
|
|
networks:
|
|
|
|
- standardnotes_self_hosted
|
2023-02-06 12:35:58 +00:00
|
|
|
|
2022-06-24 13:18:41 +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
|
2022-06-24 13:18:41 +00:00
|
|
|
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
|
2022-06-24 13:18:41 +00:00
|
|
|
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
|
2022-06-24 13:18:41 +00:00
|
|
|
volumes:
|
|
|
|
- ./data/mysql:/var/lib/mysql
|
|
|
|
- ./data/import:/docker-entrypoint-initdb.d
|
2023-02-07 06:35:10 +00:00
|
|
|
networks:
|
|
|
|
- standardnotes_self_hosted
|
2022-06-24 13:18:41 +00:00
|
|
|
|
|
|
|
cache:
|
|
|
|
image: redis:6.0-alpine
|
2023-02-06 12:35:58 +00:00
|
|
|
container_name: cache-self-hosted
|
2022-06-24 13:18:41 +00:00
|
|
|
volumes:
|
|
|
|
- ./data/redis/:/data
|
|
|
|
expose:
|
2023-02-06 05:52:11 +00:00
|
|
|
- 6379
|
2022-06-24 13:18:41 +00:00
|
|
|
restart: unless-stopped
|
2023-02-07 06:35:10 +00:00
|
|
|
networks:
|
|
|
|
- standardnotes_self_hosted
|
|
|
|
|
|
|
|
networks:
|
|
|
|
standardnotes_self_hosted:
|
|
|
|
name: standardnotes_self_hosted
|