-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·74 lines (68 loc) · 1.34 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
version: '3'
services:
short-app:
image: short-app
build: .
stdin_open: true
tty: true
command: bin/rails server --port 3000 --binding 0.0.0.0
env_file: ./dev.env
ports:
- "3000:3000"
depends_on:
- mariadb
- redis_dev
- webpacker
networks:
- app
working_dir: /app
volumes:
- .:/app
environment:
- WEBPACKER_DEV_SERVER_HOST=webpacker
worker:
image: short-app
command: bundle exec rake resque:work
env_file: ./dev.env
working_dir: /app
volumes:
- .:/app:cached
depends_on:
- mariadb
- redis_dev
networks:
- app
mariadb:
image: mariadb
container_name: short_app_mariadb_dev
volumes:
- data-mysql:/var/lib/mysql
- ./mysql:/docker-entrypoint-initdb.d:ro
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=short_development
networks:
- app
ports:
- 3307:3306
redis_dev:
image: redis
container_name: redis_dev
networks:
- app
webpacker:
image: short-app
environment:
- NODE_ENV=development
- RAILS_ENV=development
- WEBPACKER_DEV_SERVER_HOST=0.0.0.0
command: ./bin/webpack-dev-server --port 3035 --binding 0.0.0.0
volumes:
- .:/short-app
ports:
- '3035:3035'
volumes:
data-mysql:
driver: local
networks:
app: