-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
72 lines (63 loc) · 1.83 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
services:
fedow_memcached:
image: memcached:1.6
container_name: fedow_memcached
hostname: fedow_memcached
restart: always
networks:
- fedow_backend
fedow_django:
# image: tibillet/fedow:latest
build: .
container_name: fedow_django
hostname: fedow_django
restart: always
env_file: .env
user: fedow
links:
- fedow_memcached:memcached
volumes:
- ./ssh:/home/fedow/.ssh
- ./:/home/fedow/Fedow
- fedow_database:/home/fedow/Fedow/database
networks:
- fedow_backend
# For production :
# command: "bash start.sh"
# For dev :
command: "bash start_dev.sh"
# 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"
fedow_nginx:
image: nginx
restart: always
container_name: fedow_nginx
hostname: fedow_nginx
volumes:
- ./www:/www
- ./logs:/logs
- ./nginx:/etc/nginx/conf.d
depends_on:
- fedow_django
links:
- fedow_django:fedow_django
labels:
- traefik.enable=true
- traefik.docker.network=frontend
- traefik.http.routers.fedow_nginx.tls.certresolver=myresolver
- traefik.http.routers.fedow_nginx.rule=Host(`$DOMAIN`)
- traefik.http.services.fedow_nginx.loadbalancer.server.port=80
networks:
- frontend
- fedow_backend
volumes:
fedow_database:
networks:
frontend:
external: true
fedow_backend:
# Pour test Stripe : stripe listen --forward-to https://fedow.tibillet.localhost/webhook_stripe/ --skip-verify
# docker build -t fedow . && docker tag fedow tibillet/fedow:latest && docker tag fedow tibillet/fedow:0.10.7 && docker push tibillet/fedow:latest && docker push tibillet/fedow:0.10.7