-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
44 lines (44 loc) · 951 Bytes
/
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
---
version: '3'
services:
web:
build:
context: .
args:
RAILS_ENV: "development"
ports: ["3100:3100"]
environment:
RAILS_ENV: "development"
env_file:
- docker-compose.env
depends_on:
- db
tty: true
stdin_open: true
restart: on-failure
volumes:
- .:/srv/dss:cached
- node_modules:/srv/dss/node_modules
command: sh -c "rm -f tmp/pids/server.pid && rails s -b 0.0.0.0 -p 3100"
container_name: "data-submission-service_web"
networks:
private:
datasubmissionserviceapi_public:
db:
image: postgres
volumes:
- pg_data:/var/lib/postgresql/data/:cached
restart: on-failure
container_name: "data-submission-service_db"
networks:
private:
environment:
POSTGRES_PASSWORD: "password"
volumes:
pg_data: {}
node_modules:
networks:
public:
private:
datasubmissionserviceapi_public:
external: true