-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.linux.yml
56 lines (56 loc) · 1.07 KB
/
docker-compose.linux.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
version: "3"
services:
webserver:
image: nginx:latest
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
ports:
- 80:80
tty: true
database:
image: postgres:latest
volumes:
- ./tmp/db:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: password
api:
build:
context: ./api
dockerfile: ./Dockerfile
args:
RAILS_ENV: ${RAILS_ENV}
RAILS_MASTER_KEY: ${RAILS_MASTER_KEY}
volumes:
- ./api:/api
ports:
- "3000:3000"
depends_on:
- database
- webserver
tty: true
stdin_open: true
administration:
build:
context: ./administration
dockerfile: ./Dockerfile
args:
RAILS_ENV: ${RAILS_ENV}
volumes:
- ./administration:/usr/src/app
ports:
- "3001:3001"
depends_on:
- api
client:
build:
context: ./client
dockerfile: ./Dockerfile
args:
RAILS_ENV: ${RAILS_ENV}
volumes:
- ./client:/usr/src/app
ports:
- "3002:3002"
depends_on:
- api
- administration