-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
39 lines (38 loc) · 940 Bytes
/
docker-compose-dev.yml
File metadata and controls
39 lines (38 loc) · 940 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
services:
web:
build:
context: ./docker/app
dockerfile: Dockerfile-dev
command: flask run -h 0.0.0.0
volumes:
- .:/usr/src/app/
ports:
- 5001:5000
env_file:
- ./.env
depends_on:
- db
# db:
# image: postgres:13
# volumes:
# - /docker/postgres/db-data:/var/lib/postgresql/data/
# environment:
# - POSTGRES_USER=hello_flask
# - POSTGRES_PASSWORD=hello_flask
# - POSTGRES_DB=hello_flask_dev
db:
build:
context: ./docker/postgres
dockerfile: Dockerfile
image: techster-postgres
#container_name: cajui-db
ports:
- "5432:5432"
#restart: unless-stopped
environment:
POSTGRES_DB: ${DB_DATABASE}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
volumes:
- ./docker/postgres/db-data:/var/lib/postgresql/data
- ./docker/postgres:/docker-entrypoint-initdb.d