-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
80 lines (78 loc) · 1.73 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
---
version: '3'
services:
web:
build:
context: .
args:
RAILS_ENV: "development"
BUNDLE_GEMS__CONTRIBSYS__COM: ${BUNDLE_GEMS__CONTRIBSYS__COM}
image: local/data_submission_service_api_app
ports: ["3000:3000"]
environment:
RAILS_ENV: "development"
env_file:
- docker-compose.env
depends_on:
- db
- redis
tty: true
stdin_open: true
restart: on-failure
volumes:
- .:/srv/dss-api:cached
- node_modules:/srv/dss-api/node_modules:cached
command: sh -c "rm -f tmp/pids/server.pid && bin/rails s -b 0.0.0.0 -p 3000"
container_name: "data-submission-service-api_web"
networks:
public:
aliases:
- api
private:
worker:
image: local/data_submission_service_api_app
build:
context: .
args:
RAILS_ENV: "development"
BUNDLE_GEMS__CONTRIBSYS__COM: ${BUNDLE_GEMS__CONTRIBSYS__COM}
environment:
RAILS_ENV: "development"
env_file:
- docker-compose.env
depends_on:
- db
- redis
- web
tty: true
stdin_open: true
restart: on-failure
volumes:
- .:/srv/dss-api:cached
command: sh -c "bundle exec sidekiq"
container_name: "data-submission-service-api_worker"
networks:
private:
db:
image: postgres
volumes:
- pg_data:/var/lib/postgresql/data/:cached
restart: on-failure
container_name: "data-submission-service-api_db"
networks:
private:
environment:
POSTGRES_PASSWORD: "password"
redis:
image: redis
container_name: "data-submission-service-api_redis"
expose:
- 6379
networks:
private:
volumes:
pg_data: {}
node_modules:
networks:
public:
private: