-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
81 lines (76 loc) · 1.9 KB
/
docker-compose.yml
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
81
version: '3.8'
x-restart-policy: &restart_policy
restart: unless-stopped
x-env-file: &env_file
env_file:
- ./Dockerenv/default.env
- ./Dockerenv/${NODE_CONFIG_ENV}.env
services:
postgres:
image: mdillon/postgis:11
<<: *restart_policy
<<: *env_file
volumes:
- postgres_data:/var/lib/postgresql/data/
ports:
- "27188:5432"
restart: always
api:
container_name: scrinity-api
build:
dockerfile: ./docker/api/Dockerfile
context: .
<<: *restart_policy
<<: *env_file
environment:
- SERVICE=api
- JWT_SECRET=${JWT_SECRET}
- SMTP_USERNAME=${SMTP_USERNAME}
- SMTP_PASSWORD=${SMTP_PASSWORD}
- AWS_S3_ACCESS_KEY_ID=${AWS_S3_ACCESS_KEY_ID}
- AWS_S3_SECRET_ACCESS_KEY=${AWS_S3_SECRET_ACCESS_KEY}
- WEB_PUSH_PRIVATE=${WEB_PUSH_PRIVATE}
volumes:
- ./templates:/app/templates
ports:
- "27180:3001"
depends_on:
- postgres
manager:
container_name: scrinity-manager
build:
dockerfile: ./docker/api/Dockerfile
context: .
<<: *restart_policy
<<: *env_file
environment:
- SERVICE=manager
- JWT_SECRET=${JWT_SECRET}
- SMTP_USERNAME=${SMTP_USERNAME}
- SMTP_PASSWORD=${SMTP_PASSWORD}
- AWS_S3_ACCESS_KEY_ID=${AWS_S3_ACCESS_KEY_ID}
- AWS_S3_SECRET_ACCESS_KEY=${AWS_S3_SECRET_ACCESS_KEY}
- WEB_PUSH_PRIVATE=${WEB_PUSH_PRIVATE}
ports:
- "27181:3002"
depends_on:
- postgres
aggregator:
container_name: scrinity-aggregator
build:
dockerfile: ./docker/api/Dockerfile
context: .
<<: *restart_policy
<<: *env_file
environment:
- SERVICE=aggregator
- PROXY_HOST=${PROXY_HOST}
- PROXY_PORT=${PROXY_PORT}
- PROXY_USERNAME=${PROXY_USERNAME}
- PROXY_PASSWORD=${PROXY_PASSWORD}
ports:
- "27184:3002"
depends_on:
- postgres
volumes:
postgres_data: