-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
60 lines (53 loc) · 1.02 KB
/
docker-compose.yaml
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
version: '3.0'
services:
# TODO: Might want to run dockergen in separate container?
# TODO: Run letsencrypt container?
nginx:
image: jwilder/nginx-proxy:alpine-0.6.0
networks:
misago:
ports:
- "80:80"
- "443:443"
volumes:
# TODO: Might be better to use `DOCKER_HOST`
- /var/run/docker.sock:/tmp/docker.sock:ro
postgres:
image: postgres:10
restart: unless-stopped
networks:
misago:
env_file:
- postgres.env
volumes:
- pgdata:/var/lib/postgresql/data
redis:
image: redis:3-alpine
restart: unless-stopped
networks:
misago:
volumes:
- redis:/data
misago:
build: misagodocker
restart: unless-stopped
volumes:
- misago-media:/misago/media
networks:
misago:
aliases:
- misago
env_file:
- misagodocker.env
- postgres.env
depends_on:
- postgres
- nginx
- redis
tty: true
volumes:
pgdata:
redis:
misago-media:
networks:
misago: