2019-12-08 00:19:36 +00:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
web:
|
2020-03-22 13:55:27 +00:00
|
|
|
command: "bundle exec puma"
|
|
|
|
tty: true
|
2020-03-14 19:43:19 +00:00
|
|
|
stdin_open: true
|
2020-03-22 13:55:27 +00:00
|
|
|
# Debug
|
2020-03-25 23:34:52 +00:00
|
|
|
#command: /bin/bash
|
2020-03-22 12:21:42 +00:00
|
|
|
container_name: ensl_dev
|
2019-12-08 00:19:36 +00:00
|
|
|
build:
|
|
|
|
context: ./
|
|
|
|
dockerfile: Dockerfile.dev
|
2020-03-22 13:55:27 +00:00
|
|
|
# args:
|
|
|
|
# buildno: 1
|
2019-12-08 00:19:36 +00:00
|
|
|
volumes:
|
|
|
|
- ".:/var/www/"
|
|
|
|
ports:
|
|
|
|
- "4000:4000"
|
2020-03-15 14:55:52 +00:00
|
|
|
- "35729:35729"
|
2019-12-08 00:19:36 +00:00
|
|
|
links:
|
|
|
|
- db
|
|
|
|
- memcached
|
2020-03-16 20:30:46 +00:00
|
|
|
#- spring
|
2020-03-16 02:35:44 +00:00
|
|
|
#- selenium
|
2020-03-15 14:55:52 +00:00
|
|
|
#- redis
|
|
|
|
|
|
|
|
test:
|
|
|
|
# Debug
|
|
|
|
#stdin_open: true
|
|
|
|
command: ["/bin/bash", "-c", "--", "while true; do sleep 100; done;"]
|
2020-03-25 01:13:38 +00:00
|
|
|
container_name: ensl_test
|
2020-03-15 14:55:52 +00:00
|
|
|
build:
|
|
|
|
context: ./
|
|
|
|
dockerfile: Dockerfile.dev
|
|
|
|
args:
|
|
|
|
buildno: 1
|
|
|
|
env_file:
|
|
|
|
- .env.test
|
|
|
|
ports:
|
|
|
|
- 3005:3005 # Capybara listens here
|
|
|
|
links:
|
|
|
|
- db
|
2020-03-25 23:34:52 +00:00
|
|
|
# - selenium
|
2020-03-15 14:55:52 +00:00
|
|
|
volumes:
|
|
|
|
- ".:/var/www"
|
|
|
|
# command: bin/spring server
|
|
|
|
environment:
|
|
|
|
TEST_APP_HOST: test
|
|
|
|
TEST_APP_PORT: 3005
|
|
|
|
SELENIUM_HOST: selenium
|
|
|
|
RAILS_ENV: test
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
aliases:
|
|
|
|
- test
|
|
|
|
|
|
|
|
redis:
|
|
|
|
image: 'redis:4.0-alpine'
|
2020-03-25 01:13:38 +00:00
|
|
|
container_name: ensl_dev_redis
|
2020-03-15 14:55:52 +00:00
|
|
|
|
|
|
|
selenium:
|
|
|
|
image: selenium/standalone-chrome-debug
|
2020-03-22 04:13:47 +00:00
|
|
|
container_name: ensl_dev_selenium
|
2020-03-15 14:55:52 +00:00
|
|
|
ports:
|
|
|
|
- 5900:5900
|
2020-03-16 02:35:44 +00:00
|
|
|
- 4444:4444
|
2020-03-15 14:55:52 +00:00
|
|
|
|
2020-03-16 20:30:46 +00:00
|
|
|
# spring:
|
|
|
|
# build:
|
|
|
|
# context: ./
|
|
|
|
# dockerfile: Dockerfile.dev
|
|
|
|
# args:
|
|
|
|
# buildno: 1
|
|
|
|
# volumes:
|
|
|
|
# - .:/var/www
|
|
|
|
# command: spring server
|
|
|
|
|
|
|
|
# This ensures that the pid namespace is shared between the host
|
|
|
|
# and the container. It's not necessary to be able to run spring
|
|
|
|
# commands, but it is necessary for "spring status" and "spring stop"
|
|
|
|
# to work properly.
|
|
|
|
# pid: host
|
|
|
|
|
2019-12-08 00:19:36 +00:00
|
|
|
db:
|
2019-10-17 18:29:15 +00:00
|
|
|
# Debug
|
2020-03-24 21:14:40 +00:00
|
|
|
#command: bash
|
2019-12-08 00:19:36 +00:00
|
|
|
#tty: true
|
2019-09-24 19:55:34 +00:00
|
|
|
command: mysqld_safe --skip-grant-tables
|
2019-12-08 00:19:36 +00:00
|
|
|
image: mariadb:latest
|
2020-03-21 20:32:48 +00:00
|
|
|
container_name: ensl_dev_db
|
2019-12-08 00:19:36 +00:00
|
|
|
volumes:
|
|
|
|
- "./db_data:/var/lib/mysql"
|
|
|
|
- "./ext/mysql.conf.d:/etc/mysql/conf.d"
|
|
|
|
environment:
|
|
|
|
- MYSQL_DATABASE=ensl
|
|
|
|
- MYSQL_USER=ensl
|
|
|
|
- MYSQL_USERNAME=ensl
|
|
|
|
- MYSQL_PASSWORD=ensl
|
|
|
|
- MYSQL_ROOT_PASSWORD=ensl
|
|
|
|
- MYSQL_ROOT_HOST=%
|
2020-03-15 14:55:52 +00:00
|
|
|
|
2019-12-08 00:19:36 +00:00
|
|
|
memcached:
|
|
|
|
image: memcached:latest
|
2020-03-25 23:34:52 +00:00
|
|
|
container_name: ensl_dev_memcached
|
2020-03-22 13:55:27 +00:00
|
|
|
|
2019-12-08 00:19:36 +00:00
|
|
|
#redis:
|
|
|
|
# image: redis
|