-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose-dev-deploy.yml
55 lines (43 loc) · 1.16 KB
/
docker-compose-dev-deploy.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
version: "3.8"
services:
backend:
build:
context: ./backend/beafamily
dockerfile: Dockerfile.dev.deploy
args:
- SECRET_KEY=${SECRET_KEY}
- IP_ADDRESS=${IP_ADDRESS}
command: uwsgi --ini uwsgi/uwsgi.ini
ports:
- "8000:8000"
volumes:
- type: bind
source: /home/dev-deploy/media/
target: /backend/data/
- type: bind
source: /home/dev-deploy/logs/
target: /backend/logs/
frontend:
depends_on:
- backend
build:
context: ./frontend
dockerfile: Dockerfile.dev.deploy
args:
- SSL_CHAIN_PATH_HOST=${SSL_CHAIN_PATH_HOST}
- SSL_CHAIN_PATH_DOCKER=${SSL_CHAIN_PATH_DOCKER}
- SSL_KEY_PATH_HOST=${SSL_KEY_PATH_HOST}
- SSL_KEY_PATH_DOCKER=${SSL_KEY_PATH_DOCKER}
volumes:
- type: bind
source: $SSL_KEY_PATH_HOST
target: $SSL_KEY_PATH_DOCKER
- type: bind
source: $SSL_CHAIN_PATH_HOST
target: $SSL_CHAIN_PATH_DOCKER
- type: bind
source: /home/dev-deploy/media/
target: /usr/app/html/media/
command: nginx -g 'daemon off;'
ports:
- "443:443"