-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
93 lines (82 loc) · 2.33 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
version: '3'
services:
db:
image: postgres:9.6.3
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
restart: unless-stopped
es:
image: elasticsearch:7.10.1
environment:
- "discovery.type=single-node"
- "xpack.security.enabled=false"
- "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"
ulimits:
nofile:
soft: 65536
hard: 65536
restart: unless-stopped
memcached:
image: memcached:1.6.9-alpine
ports:
- "11211:11211"
restart: unless-stopped
web:
build: docker/web/
volumes:
- .:/src:ro
- static:/static:rw
command: /src/entrypoint.sh
ports:
- "8000:8000"
environment:
- "POSTGRES_HOST=db"
- "ES_HOST=es"
- "STATIC_ROOT=/static"
depends_on:
- db
- es
- memcached
labels:
- "traefik.enable=true"
- "traefik.http.routers.linkely.entrypoints=websecure"
- "traefik.http.routers.linkely.tls=true"
- "traefik.http.routers.linkely.tls.certresolver=myresolver"
- "traefik.http.routers.linkely.rule=Host(`linkely.co`)"
- "traefik.http.middlewares.compress-traffic.compress=true"
- "traefik.http.routers.linkely.middlewares=compress-traffic"
- "traefik.http.services.linkely.loadbalancer.server.port=8000"
links:
- "db:db"
- "es:es"
- "memcached:memcached"
networks:
- default
- traefik_proxy
restart: unless-stopped
web_static:
image: sebp/lighttpd
labels:
- "traefik.enable=true"
- "traefik.http.routers.linkely_static.entrypoints=websecure"
- "traefik.http.routers.linkely_static.tls=true"
- "traefik.http.routers.linkely_static.tls.certresolver=myresolver"
- "traefik.http.routers.linkely_static.rule=Host(`static.linkely.co`)"
- "traefik.http.middlewares.compress-static.compress=true"
- "traefik.http.routers.linkely_static.middlewares=compress-static"
- "traefik.http.services.linkely_static.loadbalancer.server.port=80"
networks:
- default
- traefik_proxy
volumes:
- static:/var/www/localhost/htdocs:ro
- $PWD/docker/static_web/:/etc/lighttpd:ro
tty: true
restart: unless-stopped
volumes:
static:
networks:
traefik_proxy:
external: true