-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (49 loc) · 941 Bytes
/
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
services:
proxy:
depends_on:
- server
build:
context: .
dockerfile: ./proxy/Dockerfile
args:
- "VITE_APP_API_HOST=$API_HOST"
- "VITE_APP_API_ROOT=$API_ROOT"
restart: on-failure
env_file: .env
networks:
- proxy
ports:
- 80:80
database:
build: ./database
restart: on-failure
secrets:
- postgres_password
env_file: .env
environment:
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
ports:
- 5432:5432
networks:
- db
server:
depends_on:
- database
build:
context: ./server
target: production
restart: on-failure
secrets:
- postgres_password
env_file: .env
environment:
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
networks:
- proxy
- db
networks:
proxy:
db:
secrets:
postgres_password:
file: .POSTGRES_PASSWORD