-
Notifications
You must be signed in to change notification settings - Fork 0
/
full_deploy_shared_code_machine.yml
67 lines (56 loc) · 1.14 KB
/
full_deploy_shared_code_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
56
57
58
59
60
61
62
63
64
#Deploy with
#docker-compose -f devops/full_local_deploy.yml build
#docker-compose -f devops/full_local_deploy.yml up -d
web:
restart: always
build: Dockerfiles/.
dockerfile: Dockerfile_web_local_docker
expose:
- "8000"
dns:
- 8.8.8.8
- 8.8.4.4
links:
- mysql:mysql
env_file:
- ../web/.env_local_docker
volumes:
- ../web:/your_codebase/web/frontend/local
working_dir: /your_codebase/web/restapi
command: gunicorn --reload wsgi:application -w 2 -b 0.0.0.0:8000
nginx:
restart: always
build: Dockerfiles/.
dockerfile: Dockerfile_nginx
ports:
- "80:80"
volumes:
- /www/stat #TESTE RETIRAR!!!
dns:
- 8.8.8.8
- 8.8.4.4
volumes_from:
- web
links:
- web:web
command: nginx
mysql:
restart: always
image: mysql:latest
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD:???
# data:
# restart: always
# image: postgres:latest
# volumes:
# - /var/lib/postgresql
# postgres:
# restart: always
# build: ../postgres
# dockerfile: Dockerfile_postgres_local
# ports:
# - "5432:5432"
# volumes:
# - /var/lib/postgresql