-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
52 lines (46 loc) · 908 Bytes
/
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
version: "3.3"
services:
cronjobs:
container_name: cronjobs
build: .
restart: always
depends_on:
- db
db:
image: postgres:14.5-alpine
restart: always
environment:
POSTGRES_USER: ${POSTGRESUSER}
POSTGRES_PASSWORD : ${POSTGRESPASSWORD}
POSTGRES_DB: ${DATABASE}
ports:
- '5432:5432'
volumes:
- db:/var/lib/postgresql/data
# used to query the database before implementing UI
adminer:
image: adminer
restart: always
ports:
- 8080:8080
flask:
container_name: flask
build:
context: "."
dockerfile: "./app/Dockerfile"
restart: always
depends_on:
- db
ports:
- 8000:8000
nginx:
build: ./nginx
container_name: nginx
#environment:
# - SERVER_NAME=${NGINX_SERVER_NAME}
ports:
- "80:80"
restart: always
volumes:
db:
driver: local