-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.stage.yml
64 lines (58 loc) · 1.28 KB
/
docker-compose.stage.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
64
version: "3.8"
services:
## entry point for portfolify app containers
app-reverse-proxy:
image: jermytan/portfolify-reverse-proxy:production
build:
context: ./app-reverse-proxy
volumes:
- static-volume:/app/static
networks:
- frontend
- backend
restart: always
ports:
- "80:80"
depends_on:
- frontend
- backend
## can only be accessed from same network
frontend:
image: jermytan/portfolify-frontend:production
build:
context: ./frontend
args:
REACT_APP_API_URL: https://portfolify.jermytan.com/api
networks:
- frontend
restart: always
## can only be accessed from same network
backend:
image: jermytan/portfolify-backend:production
build:
context: ./backend
command: gunicorn portfolify.wsgi:application --bind 0.0.0.0:8000
volumes:
- static-volume:/app/static
networks:
- backend
restart: always
env_file:
- ./backend/.env.backend.dev
depends_on:
- db
db:
image: postgres:12-alpine
networks:
- backend
volumes:
- postgres-data:/var/lib/postgresql/data/
env_file:
- ./backend/.env.db.dev
restart: always
networks:
frontend:
backend:
volumes:
postgres-data:
static-volume: