forked from solidusio/solidus_starter_frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (57 loc) · 1.63 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
55
56
57
58
59
60
61
version: '3.7'
services:
mysql:
image: mysql:8.0
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: password
volumes:
- mysql:/var/lib/mysql:cached
postgres:
image: postgres:13.2
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: password
POSTGRES_DB: solidus_starter_frontend_solidus_test
volumes:
- postgres:/var/lib/postgresql/data:cached
app:
platform: linux/amd64
build:
context: .dockerdev
dockerfile: Dockerfile
args:
RUBY_VERSION: "2.7.2"
PG_VERSION: 13
NODE_VERSION: 14
BUNDLER_VERSION: 1.17.3
image: solidus_starter_frontend-0.1.0
command: bash -c "(bundle check || bundle) && tail -f /dev/null"
environment:
CAPYBARA_JS_DRIVER: selenium_chrome_headless_docker_friendly
DB_USERNAME: root
DB_PASSWORD: password
DB_ALL: "1"
DB_MYSQL_HOST: mysql
DB_POSTGRES_HOST: postgres
HISTFILE: "/home/solidus_starter_frontend_user/history/bash_history"
MYSQL_HISTFILE: "/home/solidus_starter_frontend_user/history/mysql_history"
ports:
- "${SANDBOX_PORT:-3000}:${SANDBOX_PORT:-3000}"
volumes:
- .:/home/solidus_starter_frontend_user/app:delegated
- bundle:/home/solidus_starter_frontend_user/gems:cached
- history:/home/solidus_starter_frontend_user/history:cached
- .dockerdev/.psqlrc:/home/solidus_starter_frontend_user/.psqlrc:cached
tty: true
stdin_open: true
tmpfs:
- /tmp
depends_on:
- mysql
- postgres
volumes:
bundle:
history:
postgres:
mysql: