-
Notifications
You must be signed in to change notification settings - Fork 140
/
docker-compose.yml
40 lines (40 loc) · 994 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
version: '3.3'
volumes:
gems:
services:
app:
stdin_open: true
tty: true
build:
context: .
dockerfile: ./Dockerfile.dev
working_dir: /app/spec/dummy
command: /bin/bash -c "bundle check || bundle install && bundle exec rails s -p 3000 -P /tmp/puma.pid -b 0.0.0.0"
volumes:
- gems:/gems
- .:/app
ports:
- '3000:3000'
depends_on:
- db
environment:
- RAILS_ENV=development
- DEV_MYSQL_HOST=db
- FINE_NETLIFY_API_TOKEN=test
- FINE_NETLIFY_API_USER=test
db:
# image: postgres
# volumes:
# - ./tmp/db:/var/lib/postgresql/data
# environment:
# POSTGRES_PASSWORD: password
# ports:
# - "5432:5432"
image: mariadb
environment:
- MYSQL_ROOT_PASSWORD=
- MYSQL_ALLOW_EMPTY_PASSWORD='yes'
ports:
- '3307:3306'
volumes:
- /private/app/dbs:/var/lib/mysql