-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
63 lines (57 loc) · 1.18 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
59
60
61
62
63
version: '3.1'
volumes:
postgres-data:
services:
postgres:
image: pgautoupgrade/pgautoupgrade:latest
restart: always
volumes:
- postgres-data:/var/lib/postgresql/data
- ./postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
environment:
POSTGRES_PASSWORD: postgres
admin:
build:
context: backend
dockerfile: Dockerfile
image: backend:latest
ports:
- '8000:8000'
volumes:
- ./backend:/app
command: uvicorn mysaas.asgi:application --host 0.0.0.0 --reload
depends_on:
- postgres
api:
build:
context: backend
dockerfile: Dockerfile
image: backend:latest
ports:
- '8001:8000'
volumes:
- ./backend:/app
command: uvicorn mysaas.asgi:fastapp --host 0.0.0.0 --reload
depends_on:
- postgres
frontend:
build:
context: frontend
image: frontend:latest
ports:
- '3000:3000'
volumes:
- ./frontend:/app
command: yarn dev
depends_on:
- api
nginx:
image: nginx
ports:
- "80:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- frontend
- admin
- api