-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
54 lines (48 loc) · 1.08 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
x-app: &app
build:
context: .
dockerfile: dev.dockerfile
image: lateral-link/haistack-coding-challenge
platform: linux/amd64
volumes:
- .:/app
- app_gem_home:/usr/local/bundle
services:
app:
<<: *app
depends_on:
- db
- webpacker
environment:
DATABASE_URL: $DATABASE_URL
NODE_ENV: development
RAILS_ENV: development
WEBPACKER_DEV_SERVER_HOST: webpacker
ports:
- "3000:3000"
webpacker:
<<: *app
command: bundle exec ./bin/webpack-dev-server
environment:
NODE_ENV: development
RAILS_ENV: development
WEBPACKER_DEV_SERVER_HOST: 0.0.0.0
ports:
- "3035:3035"
db:
environment:
MYSQL_DATABASE: $DB_DATABASE
MYSQL_ONETIME_PASSWORD: true
MYSQL_PASSWORD: $DB_PASSWORD
MYSQL_RANDOM_ROOT_PASSWORD: true
MYSQL_TCP_PORT: $DB_PORT
MYSQL_USER: $DB_USERNAME
image: mysql:5.7.41-debian
platform: linux/amd64
ports:
- "3306:$DB_PORT"
volumes:
- db_mysql_datadir:/var/lib/mysql
volumes:
app_gem_home:
db_mysql_datadir: