-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
43 lines (42 loc) · 922 Bytes
/
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
services:
# NextJS Service
# nextapp:
# container_name: nextapp
# image: nextapp:1.0.0
# build:
# context: ./frontend
# dockerfile: next.dockerfile
# ports:
# - 3000:3000
# environment:
# - NEXT_PUBLIC_API_URL=http://localhost:4000
# depends_on:
# - flaskapp
# # Flask Service
flask:
container_name: flask
image: flask:1.0.0
build:
# I'll use a Dockerfile in ./backend path
context: ./BE
dockerfile: flask.dockerfile
ports:
- 4000:4000
environment:
- DATABASE_URL=postgresql://postgres:postgres@db:5432/postgres
depends_on:
- db
# DB Service
db:
container_name: db
image: postgres:13
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB:
ports:
- 5432:5432
volumes:
- pgdata:/var/lib/postgresql/data
volumes:
pgdata: {}