-
Notifications
You must be signed in to change notification settings - Fork 0
/
full_deploy_dev_machine.yml
executable file
·58 lines (49 loc) · 1.06 KB
/
full_deploy_dev_machine.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
#Deploy with
#docker-compose -f devops/full_dev_deploy.yml build
#docker-compose -f devops/full_dev_deploy.yml up -d
#[NBB] the yml defines the machine type: dev or prod (through the used .env_dev)
web:
restart: always
build: Dockerfiles/.
dockerfile: Dockerfile_web_remote_docker
expose:
- "8000"
dns:
- 8.8.8.8
- 8.8.4.4
# links:
# - postgres:databseserver.c8owvxtnbvrk.us-west-1.rds.amazonaws.com
env_file:
- ../web/.env_dev
volumes:
- /your_codebase/web/frontend/static
working_dir: /your_codebase/web/restapi
command: gunicorn wsgi:application -w 2 -b 0.0.0.0:8000
nginx:
restart: always
build: Dockerfiles/.
dockerfile: Dockerfile_nginx
ports:
- "80:80"
dns:
- 8.8.8.8
- 8.8.4.4
volumes:
- /www/stat
volumes_from:
- web
links:
- web:web
command: nginx
# postgres:
# restart: always
# image: postgres:latest
# volumes_from:
# - data
# ports:
# - "5432:5432"
# data:
# restart: always
# image: postgres:latest
# volumes:
# - /var/lib/postgresql