-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-development.yml
59 lines (57 loc) · 1.17 KB
/
docker-compose-development.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
version: '2'
services:
db:
image: forestguardian/postgres_postgis
environment:
POSTGRES_USER: forestguardian
POSTGRES_PASSWORD: rVgJcwDvs5A7aMZG
ports:
- '5432:5432'
volumes:
- vol-postgres:/var/lib/postgresql/data
networks:
intranet:
ipv4_address: 172.16.238.10
redis:
image: library/redis:3.0.7
ports:
- '6379:6379'
networks:
intranet:
ipv4_address: 172.16.238.11
sidekiq:
image: forestguardian/backend
environment:
RAILS_ENV: production
command: bundle exec sidekiq -C /ForestGuardianBackend/config/sidekiq.yml
depends_on:
- redis
- db
networks:
intranet:
ipv4_address: 172.16.238.12
web:
env_file:
- '.env.web'
build:
context: .
command: bundle exec rails s -p 80 -b '0.0.0.0'
ports:
- "80:80"
depends_on:
- db
- redis
- sidekiq
networks:
intranet:
ipv4_address: 172.16.238.13
volumes:
vol-postgres: {}
networks:
intranet:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.16.238.0/24
gateway: 172.16.238.1