This repository has been archived by the owner on Jun 11, 2020. It is now read-only.
forked from LSchanner/sitecaco
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
80 lines (76 loc) · 1.66 KB
/
docker-compose.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: '2'
services:
site_do_caco:
container_name: site-do-caco
restart: always
build:
context: .
dockerfile: Dockerfile
links:
- postgres:postgres
volumes:
# Cria a pasta /code dentro do container que é a pasta do projeto
- "./:/code"
- "staticfiles:/static"
# Log
- "/var/log/sitecaco/:/var/log/"
depends_on:
- postgres
environment:
- PYTHONDONTWRITEBYTECODE=1
expose:
- "8001"
nginx:
container_name: nginx-site
restart: always
build:
context: ./.nginx-docker
dockerfile: Dockerfile
volumes:
- "staticfiles:/static"
- "./sitecaco/media:/media"
# This is for letsencrypt cert's
- /etc/letsencrypt:/etc/letsencrypt
- /var/www/le:/var/www/le
- /var/www/manual:/manual/
ports:
- "80:80"
# Enable https ports (443)
- "443:443"
depends_on:
- "site_do_caco"
links:
- site_do_caco:site_do_caco
- postgres:postgres
postgres:
container_name: postgres-site
restart: always
image: postgres:latest
environment:
- DB_NAME=postgres
- DB_USER=postgres
- DB_PASS=postgres
- DB_SERVICE=postgres
- DB_PORT=5432
expose:
- "5432"
volumes:
- db:/var/lib/postgresql/data/
portainer_container:
container_name: portainer
restart: always
image: portainer/portainer
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/portainer:/data
expose:
- "9000"
volumes:
assets:
external: false
staticfiles:
external: false
mediafiles:
external: false
db:
external: false