-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (59 loc) · 1.41 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
version: '3.7'
services:
app:
image: registry.communicatio.com/ikusei/smart-village-app-maz-converter
depends_on: [db]
environment:
RAILS_ENV: production
RAILS_LOG_TO_STDOUT: 1
configs:
- source: smart-village-app-maz-converter-database-yml
target: /app/config/database.yml
- source: smart-village-app-maz-converter-unicorn-rb
target: /app/config/unicorn.rb
volumes:
- /etc/localtime:/etc/localtime:ro
- unicorn:/unicorn
- assets:/assets
deploy:
restart_policy:
condition: on-failure
nginx:
image: nginx
depends_on: [app]
networks: [default, public]
volumes:
- /etc/localtime:/etc/localtime:ro
- unicorn:/unicorn
- assets:/public
labels:
- traefik.docker.network=public
deploy:
restart_policy:
condition: on-failure
db:
image: postgres
environment:
POSTGRES_USER: smart
POSTGRES_PASSWORT: smart
POSTGRES_DB: smart
volumes:
- /etc/localtime:/etc/localtime:ro
- db:/var/lib/postgresql/data
deploy:
restart_policy:
condition: on-failure
volumes:
db:
unicorn:
assets:
configs:
smart-village-app-maz-converter-nginx-conf:
external: true
smart-village-app-maz-converter-database-yml:
external: true
smart-village-app-maz-converter-unicorn-rb:
external: true
networks:
public:
external: true