This repository has been archived by the owner on Mar 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
103 lines (94 loc) · 2.82 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
version: "3.7"
services:
pgc-magento2.x:
image: "bitnami/magento:2.4.2-debian-10-r33"
labels:
- "traefik.enable=true"
- "traefik.docker.network=net-gateway"
- "traefik.http.routers.pgc-magento.rule=Host(`${MAGENTO_HOST}`)"
- "traefik.http.routers.pgc-magento.priority=30"
- "traefik.http.routers.pgc-magento.entrypoints=web"
- "traefik.http.services.pgc-magento.loadbalancer.server.port=${APACHE_HTTP_PORT_NUMBER}"
networks:
- default
- net-gateway
environment:
# PGC config
- SHOP_PGC_SANDBOX
- SHOP_PGC_TITLE
- SHOP_PGC_DEBUG
- SHOP_PGC_3DS
- SHOP_PGC_PAYMENT_ACTION
- SHOP_PGC_SIGNATURE
- SHOP_PGC_SEAMLESS
- SHOP_PGC_VAULT
- SHOP_PGC_USER
- SHOP_PGC_USER_PW
- SHOP_PGC_PUBLIC_KEY
- SHOP_PGC_SHARED_SECRET
- SHOP_PGC_API_KEY
# Magento admin setup
- MAGENTO_USERNAME
- MAGENTO_PASSWORD
- MAGENTO_EMAIL
- MAGENTO_FIRST_NAME
- MAGENTO_LAST_NAME
# Magento system setup
- APACHE_HTTP_PORT_NUMBER
- APACHE_HTTPS_PORT_NUMBER
- MAGENTO_EXTERNAL_HTTP_PORT_NUMBER
- MAGENTO_EXTERNAL_HTTPS_PORT_NUMBER
- MAGENTO_HOST
- MAGENTO_MODE
- MAGENTO_ADMIN_URL_PREFIX
- MAGENTO_ENABLE_HTTPS
- MAGENTO_ENABLE_ADMIN_HTTPS
- MAGENTO_DATABASE_HOST
- MAGENTO_DATABASE_PORT_NUMBER
- MAGENTO_DATABASE_USER
- MAGENTO_DATABASE_NAME
- ALLOW_EMPTY_PASSWORD
# Elas config
- MAGENTO_ELASTICSEARCH_HOST
- MAGENTO_ELASTICSEARCH_PORT_NUMBER
# PHP config
- PHP_EXPOSE_PHP
- PHP_MAX_EXECUTION_TIME
- PHP_MAX_INPUT_TIME
- PHP_MAX_INPUT_VARS
- PHP_MEMORY_LIMIT
- PHP_POST_MAX_SIZE
- PHP_UPLOAD_MAX_FILESIZE
volumes:
- "magento_data:/bitnami/magento"
- '.:/paymentgatewaycloud:ro,consistent'
- "./docker/utils.sh:/utils.sh:ro"
- "./docker/sample-data.sh:/docker-entrypoint-init.d/01-sample-data.sh:ro"
- "./docker/pgc-source-code.sh:/docker-entrypoint-init.d/02-pgc-source-code.sh:ro"
- "./docker/configure.sh:/docker-entrypoint-init.d/03-configure.sh:ro"
depends_on:
- mariadb
- elasticsearch
mariadb:
image: "docker.io/bitnami/mariadb:10.3-debian-10"
environment:
- MARIADB_USER=${MAGENTO_DATABASE_USER}
- MARIADB_DATABASE=${MAGENTO_DATABASE_NAME}
- ALLOW_EMPTY_PASSWORD
volumes:
- "mariadb_data:/bitnami/mariadb"
elasticsearch:
image: "docker.io/bitnami/elasticsearch:6-debian-10"
volumes:
- "elasticsearch_data:/bitnami/elasticsearch/data"
volumes:
mariadb_data:
driver: local
magento_data:
driver: local
elasticsearch_data:
driver: local
networks: # step 1) define external network
net-gateway:
external: true
name: net-gateway