forked from wirecard/oxid-ee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.ci.yml
46 lines (46 loc) · 1.15 KB
/
docker-compose.ci.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
version: '3.5'
services:
web:
build:
context: ./
dockerfile: Dockerfile
target: ci
args:
PHP_VERSION: ${TRAVIS_PHP_VERSION}
MODULE_NAME: ${MODULE_NAME}
MODULE_PATH: ${MODULE_PATH}
OXID_VERSION: ${OXID_VERSION}
image: oxid_ee:${OXID_VERSION}-php${TRAVIS_PHP_VERSION}
container_name: ${OXID_CONTAINER}
environment:
CODACY_PROJECT_TOKEN: ${CODACY_PROJECT_TOKEN}
MODULE_PATH: ${MODULE_PATH}
MYSQL_HOST: db
MYSQL_PORT: 3306
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
OXID_HOSTNAME: web
OXID_SERVICE: localhost.dev # should be same as the service name
depends_on:
- db
networks:
global:
aliases:
- localhost.dev
db:
image: mysql:5.7
container_name: oxid_ee_db
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}
networks:
- global
selenium:
image: selenium/standalone-firefox:2.53.1
container_name: oxid_ee_selenium
shm_size: 2g
networks:
- global
networks:
global: