2023-02-07 13:12:29 +00:00
|
|
|
services:
|
|
|
|
server:
|
|
|
|
image: standardnotes/server
|
2023-02-16 08:04:18 +00:00
|
|
|
env_file: .env
|
2023-02-07 14:15:40 +00:00
|
|
|
container_name: server_self_hosted
|
2023-02-07 13:12:29 +00:00
|
|
|
ports:
|
|
|
|
- 3000:3000
|
|
|
|
- 3125:3104
|
|
|
|
volumes:
|
|
|
|
- ./logs:/var/lib/server/logs
|
2023-02-16 14:06:31 +00:00
|
|
|
- ./uploads:/opt/bundled/files/packages/files/dist/uploads
|
2023-02-07 13:12:29 +00:00
|
|
|
networks:
|
|
|
|
- standardnotes_self_hosted
|
|
|
|
|
|
|
|
localstack:
|
|
|
|
image: localstack/localstack:1.3
|
2023-02-07 14:15:40 +00:00
|
|
|
container_name: localstack_self_hosted
|
2023-02-07 13:12:29 +00:00
|
|
|
expose:
|
|
|
|
- 4566
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
- SERVICES=sns,sqs
|
|
|
|
- HOSTNAME_EXTERNAL=localstack
|
|
|
|
- LS_LOG=warn
|
|
|
|
volumes:
|
2023-02-16 08:06:07 +00:00
|
|
|
- ./localstack_bootstrap.sh:/etc/localstack/init/ready.d/localstack_bootstrap.sh
|
2023-02-07 13:12:29 +00:00
|
|
|
networks:
|
|
|
|
- standardnotes_self_hosted
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: mysql:8
|
2023-02-07 14:15:40 +00:00
|
|
|
container_name: db_self_hosted
|
2023-02-07 13:12:29 +00:00
|
|
|
environment:
|
|
|
|
- MYSQL_DATABASE=standard_notes_db
|
|
|
|
- MYSQL_USER=std_notes_user
|
|
|
|
- MYSQL_ROOT_PASSWORD=changeme123
|
|
|
|
- MYSQL_PASSWORD=changeme123
|
|
|
|
expose:
|
|
|
|
- 3306
|
|
|
|
restart: unless-stopped
|
|
|
|
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-07 14:15:40 +00:00
|
|
|
container_name: cache_self_hosted
|
2023-02-07 13:12:29 +00:00
|
|
|
volumes:
|
|
|
|
- ./data/redis/:/data
|
|
|
|
expose:
|
|
|
|
- 6379
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- standardnotes_self_hosted
|
|
|
|
|
|
|
|
networks:
|
|
|
|
standardnotes_self_hosted:
|
|
|
|
name: standardnotes_self_hosted
|