-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (38 loc) · 787 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
44 lines (38 loc) · 787 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
43
44
version: "3.7"
services:
db:
image: postgres:latest
container_name: db
environment:
POSTGRES_USER: theusername
POSTGRES_PASSWORD: thepassword
POSTGRES_DB: macronizer
networks:
- default
ports:
- 5405:5432
restart: always
volumes:
- ./postgres-data:/var/lib/postgresql/data
nginx:
build: ./nginx
container_name: nginx
restart: always
ports:
- "80:80"
- "443:443"
flask:
build: ./flask
depends_on:
- db
container_name: flask
networks:
- default
restart: always
environment:
- APP_NAME=cltk_api_docker_ci
- DATABASE_URL=postgresql://theusername:thepassword@db:5432/macronizer
expose:
- 8080
volumes:
postgres_data: