forked from standardnotes/syncing-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (73 loc) · 2.16 KB
/
Copy pathdocker-compose.yml
File metadata and controls
80 lines (73 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: '3.8'
services:
api-gateway:
image: standardnotes/api-gateway
env_file: docker/api-gateway.env
environment:
PORT: 3000
entrypoint: ["./wait-for.sh", "syncing-server", "3000", "./wait-for.sh", "syncing-server-js", "3000", "./docker/entrypoint.sh", "start-web"]
ports:
- 3000:${EXPOSED_PORT}
networks:
syncing_server: {}
auth:
image: standardnotes/auth
entrypoint: ["./wait-for.sh", "syncing-server-js", "3000", "./docker/entrypoint.sh", "start-worker"]
env_file: docker/auth.env
networks:
syncing_server: {}
syncing-server-js:
image: standardnotes/syncing-server-js
entrypoint: ["./wait-for.sh", "syncing-server", "3000", "./docker/entrypoint.sh", "start-web"]
env_file: docker/syncing-server-js.env
networks:
syncing_server: {}
syncing-server-js-worker:
image: standardnotes/syncing-server-js
entrypoint: ["./wait-for.sh", "syncing-server-js", "3000", "./docker/entrypoint.sh", "start-worker"]
env_file: docker/syncing-server-js.env
networks:
syncing_server: {}
syncing-server:
build: .
entrypoint: ["./wait-for.sh", "db", "3306", "./wait-for.sh", "cache", "6379", "./docker/entrypoint.sh", "start-local"]
env_file: .env
restart: unless-stopped
environment:
DB_HOST: db
REDIS_URL: redis://cache:6379
networks:
standardnotes_proxy:
aliases:
- syncing_server
syncing_server: {}
volumes:
- .:/syncing-server
db:
image: mysql:5.6
environment:
MYSQL_DATABASE: '${DB_DATABASE}'
MYSQL_USER: '${DB_USERNAME}'
MYSQL_PASSWORD: '${DB_PASSWORD}'
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
ports:
- 3306
restart: unless-stopped
command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8 --collation-server=utf8_general_ci
volumes:
- ./data:/var/lib/mysql
networks:
- syncing_server
cache:
image: redis:6.0-alpine
volumes:
- ./cache:/data
ports:
- 6379
networks:
- syncing_server
networks:
syncing_server:
name: syncing_server
standardnotes_proxy:
name: standardnotes