-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
70 lines (66 loc) · 1.51 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
version: "3.2"
services:
db:
image: postgres:14.12-alpine
volumes:
- db-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: adventure-time_development
app:
platform: linux/x86_64
image: storyboard_app
build:
context: .
dockerfile: ./.docker-config/Dockerfile
entrypoint: ./.docker-config/entrypoint.sh
command: rails server -p 3000 -b '0.0.0.0'
ports:
- 3000:3000
environment:
- WEBPACKER_DEV_SERVER_HOST=webpack
- SSH_AUTH_SOCK=/run/host-services/ssh-auth.sock
depends_on:
- db
volumes:
- .:/usr/src/app
- gems:/usr/local/bundle
- yarn:/usr/src/app/node_modules
- packs:/usr/src/public/packs
- log:/usr/src/app/log
- tmp:/usr/src/app/tmp
- type: bind
source: /run/host-services/ssh-auth.sock
target: /run/host-services/ssh-auth.sock
tty: true
stdin_open: true
webpack:
platform: linux/x86_64
image: storyboard_app
command: [
"./.docker-config/wait-for-it.sh",
"app:3000",
"--timeout=0",
"--",
"yarn",
"start"
]
ports:
- 3035:3035
volumes:
- .:/usr/src/app
- gems:/usr/local/bundle
- yarn:/usr/src/app/node_modules
- packs:/usr/src/public/packs
environment:
NODE_ENV: development
RAILS_ENV: development
WEBPACKER_DEV_SERVER_HOST: 0.0.0.0
volumes:
db-data:
gems:
yarn:
packs:
log:
tmp: