-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
47 lines (46 loc) · 1005 Bytes
/
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
version: "3"
services:
mysql:
image: mysql:5.7.10
env_file: .env
volumes:
- mysql-data:/var/lib/mysql
app: &app_base
build:
context: .
dockerfile: Dockerfile
command: bundle exec puma -C config/puma.rb
env_file: .env
environment:
- RAILS_ENV=development
stdin_open: true
tty: true
ports:
- "3000:3000"
volumes:
- .:/usr/src/sweets_api
- bundle:/usr/local/bundle
depends_on:
- mysql
spring:
<<: *app_base
command: bundle exec spring server
ports: []
solargraph:
<<: *app_base
command: bundle exec solargraph socket --host=0.0.0.0 --port=7658
ports:
- "8091:7658"
swagger:
image: swaggerapi/swagger-ui
volumes:
- ./public/apidocs/swagger.yaml:/usr/share/nginx/html/api/swagger.yaml
environment:
- API_URL=http://localhost:10000/api/swagger.yaml
ports:
- "10000:8080"
volumes:
mysql-data:
driver: local
bundle:
driver: local