-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.yml
61 lines (57 loc) · 1.23 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
version: '3'
services:
web: &web
build:
context: .
ports:
- "3001:3000"
volumes:
- .:/app:cached
- bundle:/usr/local/bundle
- node_modules:/app/node_modules
- packs:/app/public/packs
- rails_cache:/app/tmp/cache
- storage:/app/storage
environment:
- WEBPACKER_DEV_SERVER_HOST=webpacker
env_file:
- .env/development/database
- .env/development/web
tmpfs:
- /tmp
- /app/tmp/pids
depends_on:
database:
condition: service_healthy
database:
image: mariadb:10
command: --default-authentication-plugin=mysql_native_password
env_file:
- .env/development/database
healthcheck:
test: mysqladmin ping
interval: 2s
volumes:
- db_data:/var/lib/mysql
webpacker:
<<: *web
command: ./bin/webpacker-dev-server
environment:
- WEBPACKER_DEV_SERVER_HOST=0.0.0.0
env_file:
- .env/development/database
- .env/development/web
ports:
- "3035:3035"
volumes:
- .:/app
- bundle:/usr/local/bundle
- node_modules:/app/node_modules
- packs:/app/public/packs
volumes:
bundle:
db_data:
node_modules:
packs:
rails_cache:
storage: