-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdev-docker-compose.yaml
54 lines (50 loc) · 1.36 KB
/
dev-docker-compose.yaml
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
52
53
54
---
# this docker-compose is for developing the quotes application
services:
frontend:
container_name: frontend
build:
context: frontend
dockerfile: Dockerfile
ports: [5000:5000]
volumes: [./frontend:/app]
restart: always
entrypoint: [flask, run, -h, 0.0.0.0] # overwrite entrypoint with development flask webserver
environment:
FLASK_ENV: development
ENABLE_KUBERNETES_FEATURES: "false" # disable k8s specific functionality
BACKEND_HOST: backend
BACKEND_PORT: 5000
backend:
container_name: backend
build:
context: backend
dockerfile: Dockerfile
ports: [8888:5000]
volumes: [./backend:/app]
restart: always
entrypoint: [flask, run, -h, 0.0.0.0] # overwrite entrypoint with development flask webserver
environment:
FLASK_ENV: development
DB_HOST: postgres
DB_PORT: 5432
DB_USER: superuser
DB_PASSWORD: complicated
DB_NAME: quotes
postgres:
container_name: postgres
image: postgres:14.3
ports: [5432:5432]
volumes: [postgres:/var/lib/postgresql/data]
restart: always
environment:
POSTGRES_USER: superuser
POSTGRES_PASSWORD: complicated
POSTGRES_DB: quotes
# handy GUI for checking that things changed in the db
adminer:
image: adminer
restart: always
ports: [8080:8080]
volumes:
postgres: