-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (52 loc) · 1.14 KB
/
docker-compose.yml
File metadata and controls
58 lines (52 loc) · 1.14 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
version: "3"
services:
db:
build: ./db
ports:
- 5435:5432
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- db-data:/var/lib/postgresql/data
networks:
- back
web:
build: ./web
ports:
- 8080:8080
depends_on:
- db
environment:
- NODE_ENV=prod
- DATABASE_URL=${DATABASE_URL}
- DATABASE_TEST_URL=${DATABASE_TEST_URL}
- SECRET=${SECRET}
networks:
- back
client:
build: ./client
volumes:
- static:/usr/src/app/build
nginx:
build: ./nginx
ports:
- 80:80
- 443:443
volumes:
- static:/usr/src/app
- ./dh-param/dhparam-2048.pem:/etc/ssl/certs/dhparam-2048.pem
- /docker-volumes/etc/letsencrypt/live/circlechat.cc/fullchain.pem:/etc/letsencrypt/live/circlechat.cc/fullchain.pem
- /docker-volumes/etc/letsencrypt/live/circlechat.cc/privkey.pem:/etc/letsencrypt/live/circlechat.cc/privkey.pem
depends_on:
- web
- client
networks:
- front
- back
volumes:
static:
db-data:
networks:
front:
back: