-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (42 loc) · 999 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
42
43
version: "3"
services:
server:
container_name: flask
build:
context: ./server
dockerfile: ./../config/docker/server/Dockerfile
command: python server.py runserver --host 0.0.0.0 --port 5000
ports:
- "127.0.0.1:5000:5000"
volumes:
- ./server:/code
env_file:
- ./config/env/flask/.env
- ./config/env/postgres/.env
depends_on:
- db
db:
container_name: postgresql
image: postgres:12.2
ports:
- "127.0.0.1:5432:5432"
volumes:
- /home/happy-unicorn/Projects/backend-flask-db:/var/lib/postgresql/data
env_file:
- ./config/env/postgres/.env
client:
container_name: nextjs
build:
context: ./client
dockerfile: ./../config/docker/client/Dockerfile
command: npm run dev
ports:
- "127.0.0.1:3000:3000"
volumes:
- ./client:/code
- /code/node_modules
- /code/.next
env_file:
- ./config/env/nextjs/.env
depends_on:
- server