-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-prod.yml.save
74 lines (64 loc) · 1.4 KB
/
docker-compose-prod.yml.save
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
65
66
67
68
69
70
71
72
73
74
version: '3.8'
services:
db-lwandi:
container_name: db_postgres
restart: always
image: postgres:12.0-alpine
networks:
- proxy
volumes:
- $PWD/volumes/postgres:/var/lib/postgresql/data/
env_file:
- ./env_files/.env.prod.db
web:
container_name: web_django
image: lucasfs/lwandisurf-django
# build:
# context: ./django
# image: "django_web"
restart: always
command: uwsgi --ini /app/web/uwsgi.ini
volumes:
- django_project:/app/web
networks:
- proxy
env_file:
- ./env_files/.env.prod.web
depends_on:
- db-lwandi
nginx:
container_name: nginx-lwandisurf
build: ./nginx
restart: always
volumes:
- django_project:/app/web
- ./log:/var/log/nginx
networks:
- proxy
depends_on:
- web
environment:
- VIRTUAL_HOST=api.lwandisurf.org
- VIRTUAL_NETWORK=nginx-proxy
- VIRTUAL_PORT=80
- LETSENCRYPT_HOST=api.lwandisurf.org
# ui:
# container_name: ui_react
# hostname: ui_react
# restart: always
# image: lwandisurf/node:latest
# stdin_open: true
# volumes:
# - './interface:/app'
# - '/app/node_modules'
# ports:
# - "3001:3000"
volumes:
django_project:
static_data:
postgres_data:
networks:
proxy:
external:
name: nginx-proxy