-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (41 loc) · 985 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
version: '3'
services:
db:
build: ./docker/mysql
env_file:
- .env
volumes:
- ${DATA_PATH_HOST}:/var/lib/mysql
ports:
- "${MYSQL_PORT}:3306"
user: "1000:50"
app:
build: ./docker/ruby
#command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
command: bash -c "rm -f tmp/pids/server.pid && bundle exec puma"
env_file:
- .env
working_dir: ${APP_CODE_PATH_CONTAINER}
volumes:
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
- bundle:/usr/local/bundle
- puma_shared:/puma_shared
ports:
- "${RAILS_PORT}:3000"
depends_on:
- db
web:
build: ./docker/nginx
env_file:
- .env
volumes:
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
- puma_shared:/puma_shared
ports:
- "${NGINX_HOST_HTTP_PORT}:80"
- "${NGINX_HOST_HTTPS_PORT}:443"
depends_on:
- app
volumes:
bundle: {}
puma_shared: {}