-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose-dev-local.yml
More file actions
42 lines (36 loc) · 1.01 KB
/
docker-compose-dev-local.yml
File metadata and controls
42 lines (36 loc) · 1.01 KB
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"
services:
flasker:
container_name: flasker-api
build: .
volumes:
- ./logs:/flasker/logs # Store logs on local drive
networks:
- backend
# Use ports when connecting directly to flask without nginx
ports:
- "127.0.0.1:5003:5003"
environment:
- "FLASK_ENV=development"
- "APP_SETTINGS=config.DevelopmentDockerConfig"
depends_on:
- postgres
postgres:
container_name: flasker-postgres
image: postgres:11-alpine
volumes:
- flasker_postgres_data:/var/lib/postgresql # Store data here
networks:
- backend
ports:
- "127.0.0.1:5433:5432"
#expose:
# - "5432"
environment:
- "POSTGRES_USER=flasker"
- "POSTGRES_PASSWORD=wrong-horse-battery-staple"
- "POSTGRES_DATABASE=flasker"
volumes:
flasker_postgres_data:
networks:
backend: