-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (45 loc) · 887 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
version: "3.9"
services:
database:
container_name: database
image: postgres:latest
volumes:
- db_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: my_series
POSTGRES_PASSWORD: my_series
POSTGRES_DB: my_series
networks:
- bridge
ports:
- 5432:5432
app:
container_name: app
image: diesnei/my-series-app:v1.0
volumes:
- ../backend:/app/backend
- ../frontend:/app/frontend
networks:
- bridge
ports:
# PHP
- 9000:9000
# Node
- 3000:3000
depends_on:
- database
nginx:
container_name: nginx
image: nginx:latest
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ../frontend/build:/usr/share/nginx/html:ro
ports:
- 8080:80
depends_on:
- app
networks:
bridge:
driver: bridge
volumes:
db_data: