-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (48 loc) · 971 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
54
55
56
57
version: '3'
services:
backend:
build: ./backend/server
restart: always
stop_grace_period: 10s
depends_on:
- postgres
ports:
- "3113:3113"
networks:
- default
- internal_network
frontend:
build: ./frontend
restart: always
ports:
- "5050:5050"
networks:
- default
postgres:
image: postgres:13.1-alpine
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
volumes:
- ./backend/server/init_db/init.sql:/docker-entrypoint-initdb.d/init.sql
- postgres-data:/var/lib/postgresql/data
restart: always
ports:
- "3114:5432"
networks:
- internal_network
adminer:
image: adminer:latest
restart: always
ports:
- 8085:8080
networks:
- default
- internal_network
volumes:
postgres-data:
networks:
default:
internal_network:
internal: true