-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (53 loc) · 1.19 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
services:
nginx:
image: nginx:latest
ports:
- 80:80
- 443:443
restart: always
volumes:
- ./nginx/conf/:/etc/nginx/conf.d/:ro
- ./certbot/www/:/var/www/certbot/:ro
- ./certbot/conf/:/etc/nginx/ssl/:ro
network_mode: "host"
certbot:
image: certbot/certbot:latest
volumes:
- ./certbot/www/:/var/www/certbot/:rw
- ./certbot/conf:/etc/letsencrypt/:rw
nextapp:
container_name: nextapp
image: nextapp:1.0.0
build:
context: ./front
dockerfile: next.dockerfile
ports:
- 3000:3000
environment:
NEXT_PUBLIC_BACK: ${NEXT_PUBLIC_BACK}
flaskapp:
container_name: flaskapp
image: flaskapp:latest
build:
context: ./back
dockerfile: flask.dockerfile
ports:
- 5000:5000
environment:
DATABASE_URL: ${DATABASE_URL}
JIMAKU_KEY: ${JIMAKU_KEY}
depends_on:
- db
db:
container_name: db
image: postgres:latest
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- 5432:5432
volumes:
- pgdata:/var/lib/postgresql/data
volumes:
pgdata: {}