-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdocker-compose-build.yml
44 lines (42 loc) · 1.06 KB
/
docker-compose-build.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
version: '3'
volumes:
build_db_data:
services:
mysql_build:
image: mysql:5.6.40
restart: always
ports:
- "23306:23306"
volumes:
- build_db_data:/var/lib/mysql
- ./docker-compose-files/pageonex-build.cnf:/etc/mysql/conf.d/pageonex-build.cnf
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=dc-dev
command: |
bash -c "chmod 644 /etc/mysql/conf.d/pageonex-build.cnf && /entrypoint.sh mysqld"
app_build:
build: .
environment:
- RAILS_ENV=development
- DATABASE_ADAPTER=mysql2
- DATABASE_USERNAME=root
- DATABASE_PASSWORD=root
- DATABASE_HOST=mysql_build
- DATABASE_PORT=23306
- DATABASE_NAME=dc-dev
depends_on:
- "mysql_build"
ports:
- '3000:3000'
links:
- "mysql_build"
volumes:
- .:/workspace
- ./docker-compose-files/wrap-start-app.sh:/usr/local/bin/wrap-start-app.sh
working_dir: /workspace
command:
- wrap-start-app.sh
- mysql_build
- root
- "bundle exec puma -C config/puma.rb"