-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml.bak
63 lines (60 loc) · 1.16 KB
/
docker-compose.yml.bak
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
55
56
57
58
59
60
61
62
63
version: "3.7"
x-mysql: &mysql-default
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_USER: root
MYSQL_PASSWORD: password
TZ: "Asia/Tokyo"
services:
app:
build:
context: .
dockerfile: ./docker/rails/Dockerfile
command: bundle exec puma -C config/puma.rb
ports:
- "3000:3000"
volumes:
- .:/app:cached
- /var/tmp
- sockets:/app/tmp/sockets
#
- bundle:/bundle
- rails_cache:/app/tmp/cache
- node_modules:/app/node_modules
#
tty: true
depends_on:
- db
<<: *mysql-default
db:
build:
context: .
dockerfile: ./docker/mysql/Dockerfile
ports:
- "3306:3306"
volumes:
- db_data:/var/lib/mysql
<<: *mysql-default
nginx:
build:
context: .
dockerfile: ./docker/nginx/Dockerfile
ports:
- "80:80"
volumes:
- sockets:/app/tmp/sockets
depends_on:
- app
terraform:
build:
context: .
dockerfile: docker/terraform/Dockerfile
volumes:
- ./docker/terraform/src:/root/src
env_file: ./.env
volumes:
db_data:
sockets:
bundle:
node_modules:
rails_cache: