-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
99 lines (93 loc) · 1.83 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
version: "3.9"
services:
nginx:
image: nginx:alpine
restart: unless-stopped
tty: true
ports:
- 80:80
- 443:443
volumes:
- "./nginx/default.conf:/etc/nginx/conf.d/default.conf"
- "./nginx/ssl:/ssl"
networks:
- pscapi
- galerieapi
pscapi:
build: .
restart: unless-stopped
tty: true
environment:
JWT_KEY: ${PSC_JWT_KEY}
DB_PASSWORD: ${PSC_DB_PASSWORD}
PORT: 8080
DB_HOST: pscdb
DB_PORT: 5432
DB_USER: api
DB_NAME: api
DB_SSLMODE: disable
GIN_MODE: release
ports:
- ${PSC_PORT}:8080
depends_on:
- pscdb
networks:
- pscapi
galerieapi:
build: .
restart: unless-stopped
tty: true
environment:
JWT_KEY: ${GALERIE_JWT_KEY}
DB_PASSWORD: ${GALERIE_DB_PASSWORD}
PORT: 8080
DB_HOST: galeriedb
DB_PORT: 5432
DB_USER: api
DB_NAME: api
DB_SSLMODE: disable
GIN_MODE: release
ports:
- ${GALERIE_PORT}:8080
depends_on:
- galeriedb
networks:
- galerieapi
pscdb:
image: postgres:13.2-alpine
restart: unless-stopped
tty: true
environment:
POSTGRES_DB: api
POSTGRES_USER: api
POSTGRES_PASSWORD: ${PSC_DB_PASSWORD}
PGDATA: /data/postgres
ports:
- 5432:5432
volumes:
- "pscdb:/data/postgres"
networks:
- pscapi
galeriedb:
image: postgres:13.2-alpine
restart: unless-stopped
tty: true
environment:
POSTGRES_DB: api
POSTGRES_USER: api
POSTGRES_PASSWORD: ${GALERIE_DB_PASSWORD}
PGDATA: /data/postgres
ports:
- 5433:5432
volumes:
- "galeriedb:/data/postgres"
networks:
- galerieapi
volumes:
pscdb:
galeriedb:
networks:
pscapi:
driver: bridge
galerieapi:
driver: bridge