forked from frexco-digital/Desafio-Devops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (39 loc) · 895 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
version: '3.8'
services:
nginx:
image: nginx:1.23.1
ports:
- 8080:8080
postgres:
image: postgres:14
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- 5432:5432
restart: always
networks:
- app-network
app:
build: .
command: python web/manage.py runserver 0.0.0.0:8005
volumes:
- .:/docker_django
ports:
- 8005:8005
environment:
- SECRET_KEY=postgres
depends_on:
- postgres
networks:
- app-network
expose:
- 8015
networks:
app-network:
driver: bridge
volumes:
postgres_data: