-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (47 loc) · 1.08 KB
/
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
51
version: '3'
services:
flask_task:
build: ./ #Where Docker file is
container_name: flask-task
ports:
- '5000:5000'
environment:
- DB_URL=postgresql://pg_user:pg_password@pg_db:5432/flask_task
# volumes:
# - .:/usr/src/app
expose:
- 5000
depends_on:
- pg_db
pg_db:
restart: always
image: postgres
volumes:
- ./pg_db:/var/lib/postgresql/data
ports:
- '5432:5432'
environment:
- POSTGRES_DB=flask_task
- POSTGRES_USER=pg_user
- POSTGRES_PASSWORD=pg_password
container_name: pg_db
pgadmin:
container_name: pgadmin4_container
restart: always
image: dpage/pgadmin4
depends_on:
- pg_db
environment:
- PGADMIN_DEFAULT_EMAIL=your_email
- PGADMIN_DEFAULT_PASSWORD=email_password # если сменить здесь, то нужно удалить контентер
ports:
- '5050:80'
nginx:
build: ./nginx
ports:
- 80:80
volumes:
- ./static:/home/web/default/static
depends_on:
- flask_task
- pgadmin