-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
51 lines (51 loc) · 1 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
version: '3'
services:
datastore:
image: busybox
volumes:
- db_data:/var/lib/mysql
- redis_data:/data
- bundle_install:/usr/local/bundle
- node_modules:/app/node_modules
app:
build:
context: .
dockerfile: ./docker/Dockerfile
command: ["bin/server"]
ports:
- 5000:5000
- 3035:3035
volumes:
- bundle_install:/usr/local/bundle
- node_modules:/app/node_modules
- ./:/app:cached
environment:
APP_DATABASE_HOST: db
APP_DATABASE_USERNAME: root
APP_DATABASE_PASSWORD: pass
REDIS_URL: redis://redis:6379
depends_on:
- db
- redis
stdin_open: true
tty: true
db:
image: mysql:5.7
ports:
- 3306:3306
volumes:
- db_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: pass
redis:
image: redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
stdin_open: true
volumes:
db_data:
redis_data:
bundle_install:
node_modules: