-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
92 lines (85 loc) · 2.63 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
version: "3.2"
services:
ngrok:
image: shkoliar/ngrok:latest
ports:
- 4551:4551
links:
- inkshop
environment:
- DOMAIN=inkshop
- PORT=8120
- PARAMS=http -subdomain=inkandfeet -region=us -authtoken ${NGROK_AUTH_TOKEN} inkshop:8120
# traefik:
# image: "traefik:v2.2"
# command:
# #- "--log.level=DEBUG"
# - "--api.insecure=true"
# - "--providers.docker=true"
# - "--providers.docker.exposedbydefault=false"
# - "--entrypoints.websecure.address=:443"
# - "--certificatesresolvers.myresolver.acme.tlschallenge=true"
# #- "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
# - "--certificatesresolvers.myresolver.acme.email=postmaster@inkandfeet.com"
# - "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
# ports:
# - "80:80"
# - "443:443"
# - "8443:8443"
# - "8080:8080"
# volumes:
# - "./letsencrypt:/letsencrypt"
# - "/var/run/docker.sock:/var/run/docker.sock:ro"
# restart: unless-stopped
db:
image: postgres
ports:
- 5432:5432
env_file:
- ".env"
volumes:
- ./postgres-data:/var/lib/postgresql/data
# restart: unless-stopped
redis:
image: redis:6.0-alpine
# restart: unless-stopped
inkshop:
build: .
env_file: .env
depends_on:
- db
- redis
# - couchdb
# - rabbitmq
volumes:
- ./inkshop:/project/inkshop
labels:
# - "traefik.enable=true"
# - "traefik.frontend.passHostHeader=true"
# - "traefik.frontend.rule=Host: ${INKSHOP_DOMAIN}"
- "traefik.port=8120"
- "traefik.docker.network=inkshop"
- "traefik.enable=true"
# - "traefik.http.routers.inkshop.passHostHeader=true"
- "traefik.http.routers.inkshop.rule=Host(`${INKSHOP_DOMAIN}`)"
- "traefik.http.routers.inkshop.entrypoints=websecure"
- "traefik.http.routers.inkshop.tls.certresolver=myresolver"
- "traefik.http.middlewares.test-redirectscheme.redirectscheme.scheme=https"
- "traefik.http.middlewares.test-redirectscheme.redirectscheme.permanent=true"
env_file:
- ".env"
command: bash -c 'service nginx start; cd /project; PYTHONIOENCODING="utf-8" python3 manage.py collectstatic --noinput --settings=inkshop.envs.dev; honcho start -f Procfile.dev'
tty: true
stdin_open: true
# restart: unless-stopped
networks:
default:
external:
name: inkshop
# volumes:
# traefik:
# driver_opts:
# type: none
# device: /root/server-docker-images/data/traefik
# o: bind
#