forked from helpyio/helpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (46 loc) · 837 Bytes
/
docker-compose.yml
File metadata and controls
49 lines (46 loc) · 837 Bytes
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
version: '2'
services:
frontend:
image: webwurst/caddy
volumes:
- ./docker/Caddyfile:/etc/caddy/Caddyfile
- ./certs:/etc/caddy/certs
volumes_from:
- helpy:ro
ports:
- "80:80"
- "443:443"
networks:
- front
restart: always
depends_on:
- helpy
helpy:
image: helpy/helpy
restart: always
networks:
- front
- back
volumes:
- rails-assets:/helpy/public
env_file: docker/.env
#environment:
# - DO_NOT_PREPARE=true
depends_on:
- postgres
postgres:
image: postgres:9.4
restart: always
networks:
- back
env_file: docker/.env
volumes:
- ./postgres:/var/lib/postgresql/data
volumes:
rails-assets:
driver: local
networks:
front:
driver: bridge
back:
driver: bridge