-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
126 lines (113 loc) · 3.24 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
services:
laboutik_postgres:
image: postgres:11.5-alpine
restart: always
env_file: .env
container_name: laboutik_postgres
hostname: laboutik_postgres
volumes:
- laboutik_postgres_data:/var/lib/postgresql/data
networks:
- laboutik_backend
laboutik_memcached:
image: memcached:1.6
container_name: laboutik_memcached
hostname: laboutik_memcached
restart: always
networks:
- laboutik_backend
laboutik_redis:
image: redis:6-alpine
restart: always
env_file: .env
container_name: laboutik_redis
hostname: laboutik_redis
networks:
- laboutik_backend
laboutik_django:
# image: tibillet/laboutik:latest
build: .
restart: always
env_file: .env
container_name: laboutik_django
hostname: laboutik_django
volumes:
- ./:/DjangoFiles
- ./Backup:/Backup
links:
- laboutik_postgres:postgres
- laboutik_redis:redis
- laboutik_memcached:memcached
depends_on:
- laboutik_postgres
- laboutik_redis
- laboutik_memcached
networks:
- laboutik_backend
# extra_hosts:
# - "fedow.tibillet.localhost:172.17.0.1"
# - "demo.tibillet.localhost:172.17.0.1"
# - "billetistan.tibillet.localhost:172.17.0.1"
# - "cashless.tibillet.localhost:172.17.0.1"
# command: "sleep infinity"
# command: "bash /home/tibillet/LaBoutik/DjangoFiles/launch_prod.sh"
laboutik_celery:
# image: tibillet/laboutik:latest
build: .
restart: always
env_file: .env
container_name: laboutik_celery
hostname: laboutik_celery
volumes:
- ./:/DjangoFiles
links:
- laboutik_postgres:postgres
- laboutik_redis:redis
- laboutik_memcached:memcached
depends_on:
- laboutik_postgres
- laboutik_django
- laboutik_memcached
networks:
- laboutik_backend
# extra_hosts:
# - "fedow.tibillet.localhost:172.17.0.1"
# - "demo.tibillet.localhost:172.17.0.1"
# - "billetistan.tibillet.localhost:172.17.0.1"
# - "cashless.tibillet.localhost:172.17.0.1"
command: "bash start_celery.sh"
laboutik_nginx:
image: nginx
restart: always
container_name: laboutik_nginx
hostname: laboutik_nginx
depends_on:
- laboutik_django
links:
- laboutik_django:laboutik_django
volumes:
- ./www:/DjangoFiles/www
- ./logs:/DjangoFiles/logs
- ./nginx:/etc/nginx/conf.d
labels:
- traefik.enable=true
- traefik.docker.network=frontend
- traefik.http.routers.laboutik_nginx.tls.certresolver=myresolver
- traefik.http.routers.laboutik_nginx.rule=Host(`${DOMAIN}`)
networks:
- frontend
- laboutik_backend
networks:
frontend:
external: true
laboutik_backend:
volumes:
laboutik_postgres_data:
# Avant de build :
## Tradution :
### Mettre a jour le fichier de traduction :
# django-admin makemessages -l en && django-admin makemessages -l fr
### Changer les textes dans locale/en/django.po
### Compiler les traductions :
# django-admin compilemessages
# docker build -t laboutik . && docker tag laboutik tibillet/laboutik:latest && docker tag laboutik tibillet/laboutik:0.10.7 && docker push tibillet/laboutik:latest && docker push tibillet/laboutik:0.10.7