-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
63 lines (58 loc) · 1.17 KB
/
docker-compose.yaml
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
version: '3'
services:
api:
build:
context: ./docker/
dockerfile: Dockerfile-backend
ports:
- "3000:3000"
volumes:
- ./backend:/app_backend
- ./upload/:/upload
networks:
- webapp
- database
restart: always
container_name: backend_app
webapp:
build:
context: ./docker/
dockerfile: Dockerfile-frontend
ports:
- "3030:3030"
volumes:
- ./frontend:/app_frontend
networks:
- webapp
restart: always
container_name: frontend_app
db:
image: postgres:13-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: database_transcendence
ports:
- "31415:5432"
volumes:
- ./database-data:/var/lib/postgresql/data
networks:
- database
restart: always
container_name: db_app
pgadmin:
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: root
ports:
- "5050:80"
networks:
- database
restart: always
container_name: pgadmin
networks:
webapp:
driver: bridge
database:
driver: bridge