-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
66 lines (61 loc) · 1.09 KB
/
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
services:
adminer:
container_name: adminer
image: adminer
restart: on-failure
environment:
- ADMINER_DESIGN=pepa-linha
ports:
- "8081:8080"
depends_on:
- database
networks:
- network
database:
image: postgres:16.2-alpine
restart: always
container_name: postgres
env_file:
- .env
ports:
- "5432:5432"
volumes:
- database_data:/var/lib/postgresql/data
networks:
- network
frontend:
container_name: frontend
restart: always
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:3000"
env_file:
- .env
volumes:
- ./frontend:/usr/src/app
- /usr/src/app/node_modules
networks:
- network
backend:
container_name: backend
build:
context: .
dockerfile: Dockerfile
restart: always
ports:
- "8080:80"
depends_on:
- database
volumes:
- ./app:/usr/src
env_file:
- .env
networks:
- network
networks:
network:
driver: bridge
volumes:
database_data: