-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
64 lines (63 loc) · 1.32 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
version: "2"
services:
datastore:
image: busybox
volumes:
- mysql-data:/var/lib/mysql
- app-log:/imas/log
- bundle_install:/imas/.bundle
- bundle:/imas/.bundle
- bundle_deployment:/imas/.bundle_deployment
- tmpdir:/imas/tmp
mysql:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: password
networks:
- default
ports:
- '4306:3306'
volumes_from:
- datastore
app_base: &app_base
volumes:
- .:/imas
build:
context: .
dockerfile: Dockerfile-dev
dns:
- 8.8.8.8
- 8.8.4.4
environment:
DOCKER_HOST: ${DOCKER_HOST}
IMASQUARE_SLACK_CLIENT_ID: ${IMASQUARE_SLACK_CLIENT_ID}
IMASQUARE_SLACK_CLIENT_SECRET: ${IMASQUARE_SLACK_CLIENT_SECRET}
IMASQUARE_DB_USERNAME: root
IMASQUARE_DB_PASSWORD: password
IMASQUARE_DB_HOST: mysql
depends_on:
- mysql
networks:
- default
volumes_from:
- datastore
tmpfs:
/imas/tmp/pids
app:
<<: *app_base
ports:
- '8853:9292'
command: ["bundle", "exec", "rails", "s", "-b", "0.0.0.0", "-p", "9292"]
volumes:
mysql-data:
driver: local
app-log:
driver: local
bundle_install:
driver: local
bundle:
driver: local
bundle_deployment:
driver: local
tmpdir:
driver: local