-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
97 lines (89 loc) · 2.1 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
version: "3"
volumes:
static:
media:
services:
reverse-proxy:
# The official v2 Traefik docker image
image: traefik:v2.8
# Enables the web UI and tells Traefik to listen to docker
command: --api.insecure=true --providers.docker
ports:
# The HTTP port
- "80:80"
# The Web UI (enabled by --api.insecure=true)
- "8080:8080"
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
logging:
options:
max-size: "10m"
max-file: "3"
web:
build:
context: .
volumes:
- .:/code
- "static:/code/Seeder/static_root"
- "media:/code/Seeder/media"
command: bash run.sh
working_dir: /code/Seeder
labels:
- "traefik.http.routers.seeder.rule=Host(`localhost`) || Host(`127.0.0.1`)"
logging:
options:
max-size: "10m"
max-file: "3"
environment:
DEBUG: 'True'
THUMBNAIL_DEBUG: 'True'
DJANGO_SETTINGS_MODULE: settings.env
ALLOWED_HOSTS: 127.0.0.1 localhost
depends_on:
- postgres
- manet
- memcached
static:
image: nginx:alpine
volumes:
- static:/seeder/static:ro
- media:/seeder/media:ro
- ./ci/nginx.conf:/etc/nginx/conf.d/default.conf:ro
logging:
options:
max-size: "10m"
max-file: "3"
labels:
traefik.http.routers.static.rule: "PathPrefix(`/static`) || PathPrefix(`/media`)"
depends_on:
- web
vyvoj:
image: webarchiv/vyvoj:naki
logging:
options:
max-size: "10m"
max-file: "3"
labels:
traefik.http.routers.vyvoj.rule: Host(`localhost`) && PathPrefix(`/vyvoj`)
postgres:
image: postgres:9.6
logging:
options:
max-size: "10m"
max-file: "3"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
memcached:
image: memcached:latest
logging:
options:
max-size: "10m"
max-file: "3"
manet:
image: bobey/manet:latest
logging:
options:
max-size: "10m"
max-file: "3"