-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
41 lines (38 loc) · 909 Bytes
/
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
services:
web:
build: .
container_name: flask_app
working_dir: app
command: gunicorn -b 0.0.0.0:8000 app:app
ports:
- "8000:8000"
environment:
- FLASK_APP=app
- FLASK_SECRET_KEY=${FLASK_SECRET_KEY}
- SQLALCHEMY_DATABASE_URI=postgresql://postgres:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
- ENVIRONMENT=${ENVIRONMENT}
depends_on:
- db
- css
volumes:
- .:/app
db:
image: postgres:17
container_name: postgres_db
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
css:
image: node:14
container_name: css_processor
working_dir: /app
volumes:
- .:/app
command: ["npm", "run", "create-css"]
volumes:
postgres_data: