forked from l2m2/fastapi-vue-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (44 loc) · 799 Bytes
/
docker-compose.yml
File metadata and controls
49 lines (44 loc) · 799 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
45
46
47
48
49
version: "3.8"
services:
db:
image: postgres:12
volumes:
- app-db-data:/var/lib/postgresql/data/pgdata
env_file:
- backend/.env
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
networks:
- app-network
ports:
- "5432:5432"
backend:
image: backend
depends_on:
- db
env_file:
- backend/.env
build:
context: ./backend
dockerfile: backend.dockerfile
networks:
- app-network
ports:
- "8000:80"
frontend:
image: frontend
depends_on:
- backend
build:
context: ./frontend
args:
FRONTEND_ENV: production
ports:
- "80:80"
networks:
- app-network
volumes:
app-db-data:
networks:
app-network:
driver: bridge