-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (34 loc) · 943 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (34 loc) · 943 Bytes
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
version: "3.8"
services:
django:
build: ./django
container_name: app-server
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ./src:/usr/src/app/
ports:
- "8000:8000"
environment:
- DEBUG=1
- DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 [::1]
depends_on:
- pgdb
pgdb:
image: postgres:9.6.20-alpine
container_name: app-pgdb
environment:
- POSTGRES_DB=name_db
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- pgdata:/var/lib/postgresql/data/
pgadmin:
image: dpage/pgadmin4:4.29
container_name: app-pgadmin
ports:
- 5050:80
environment:
- PGADMIN_DEFAULT_EMAIL=seu_email@email.com
- PGADMIN_DEFAULT_PASSWORD=postgres
volumes:
pgdata: