forked from hipay/hipay-fullservice-sdk-magento2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.acceptance.yml
54 lines (52 loc) · 1.75 KB
/
docker-compose.acceptance.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
version: "3.3"
networks:
magento2:
internal: true
outside-pi-overlay:
external: true
traefik_traefik:
external: true
services:
web:
image: ${REGISTRY_URL}/${DOCKER_STACK}-${DOCKER_SERVICE}_web:${CI_COMMIT_REF_SLUG}
build:
context: .
dockerfile: ./bin/docker/images/default/Dockerfile
ports:
- "80"
networks:
- magento2
- traefik_traefik
- outside-pi-overlay
env_file:
- ./bin/docker/conf/acceptance/hipay.env.sample
- ./bin/docker/conf/acceptance/auth.env.sample
- ./bin/docker/conf/acceptance/mage.env.sample
- ./bin/docker/conf/acceptance/module.env.sample
labels:
- "com.hipay.ir.publish=1"
- "com.hipay.ir.name=web"
- "com.hipay.ir.branch=${CI_COMMIT_REF_SLUG}"
- "com.hipay.ir.gitlab.feature.link=${CI_PROJECT_URL}/tree/${CI_COMMIT_REF_NAME}"
- "com.hipay.ir.gitlab.org=pi-ecommerce"
- "com.hipay.ir.gitlab.project=hipay-fullservice-sdk-magento2"
- "com.hipay.ir.admin.url=${DOCKER_STACK}-${DOCKER_SERVICE}-${CI_COMMIT_REF_SLUG}.hipay-pos-platform.com/admin"
- "com.hipay.ir.url=${DOCKER_STACK}-${DOCKER_SERVICE}-${CI_COMMIT_REF_SLUG}.hipay-pos-platform.com"
deploy:
labels:
- "traefik.frontend.rule=Host:${DOCKER_STACK}-${DOCKER_SERVICE}-${CI_COMMIT_REF_SLUG}.hipay-pos-platform.com"
- "traefik.port=80"
- "traefik.docker.network=traefik_traefik"
database:
image: mysql:5.7
ports:
- "3306"
environment:
- MYSQL_ROOT_PASSWORD=magento2
- MYSQL_DATABASE=magento2
- MYSQL_USER=magento2
- MYSQL_PASSWORD=magento2
networks:
magento2:
aliases:
- ${DOCKER_SERVICE}-${CI_COMMIT_REF_SLUG}-${CI_JOB_ID}_database