-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
45 lines (42 loc) · 979 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
45
version: '3'
services:
web: &web
build:
context: .
ports:
- "3000:3000"
volumes:
- .:/app:cached
- ../etsource:/etsource:cached
- bundle:/usr/local/bundle
- node_modules:/app/node_modules
- packs:/app/public/packs
- rails_cache:/app/tmp/cache
- storage:/app/storage
environment:
- DATABASE_HOST=database
- MAPBOX_API_KEY
- MYSQL_DATABASE=etlocal_development
- MYSQL_PASSWORD=dev
- MYSQL_USER=root
tmpfs:
- /tmp
depends_on:
- database
database:
# Using MariaDB instead of MySQL since it offers support for arm64
image: mariadb:latest
platform: linux/x86_64
command: --default-authentication-plugin=mysql_native_password
environment:
- MYSQL_ROOT_PASSWORD=dev
- MYSQL_DATABASE=etlocal_development
volumes:
- db_data:/var/lib/mysql
volumes:
bundle:
db_data:
node_modules:
packs:
rails_cache:
storage: