-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (41 loc) · 845 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (41 loc) · 845 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
38
39
40
41
42
version: '3.4'
services:
postgres:
container_name: postgres
restart: always
image: postgres:10
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
volumes:
- flask-app-db:/var/lib/postgresql/data
- ./testdb_seed:/docker-entrypoint-initdb.d/testdb_seed.sql
ports:
- 5431:5432
client:
build:
dockerfile: Dockerfile
context: ./frontend
ports:
- 80:80
depends_on:
- app
app:
restart: always
build:
dockerfile: Dockerfile
context: ./backend
environment:
- FLASK_ENV=docker
ports:
- 5000:5000
volumes:
- .:/app
depends_on:
- postgres
entrypoint:
- /docker_script.sh
volumes:
flask-app-db:
name: flask-app-db