-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (59 loc) · 1.21 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
version: '2'
services:
web:
build:
context: .
dockerfile: Dockerfile.local
ports:
- "3000:3000"
image: movri_web
env_file: .env.local
# command: rm tmp/pids/server.pid
command: bundle exec rails s -p 3000 -b 0.0.0.0
depends_on:
- db
stdin_open: true
tty: true
mem_limit: 700m
volumes:
- .:/opt/app
worker:
image: movri_web
env_file: .env.local
command: bundle exec rake jobs:work
depends_on:
- db
mem_limit: 500m
volumes:
- .:/opt/app
memcached:
image: memcached:latest
db:
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
ports:
- "3308:3306"
environment:
MYSQL_ROOT_PASSWORD: root
harmony_api:
build:
context: ./harmony
ports:
- "8085:8085"
environment:
- DB_PORT=3306
- DB_HOST=harmony_db
command: ["./docker/startup.sh"]
depends_on:
- harmony_db
restart: "always"
harmony_db:
image: mysql:5.7
environment:
- MYSQL_ROOT_PASSWORD=harmony-root
volumes:
- ~/.sharetribe/harmony-mysql-data:/var/lib/mysql
ports:
- "13306:3306"
restart: "always"