-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
99 lines (99 loc) · 2.93 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
version: '3.3'
services:
web-sdep:
image: nginx:stable
container_name: web-sdep
ports:
- '8080:80'
volumes:
- ./DX-Entrypoint/dist/dx-entrypoint:/usr/share/nginx/html
web-sdep-live:
image: node:12
container_name: web-sdep-live
ports:
- '5300:5300'
volumes:
- ./DX-Entrypoint:/app
- web-sdep-node-modules:/app/node_modules
working_dir: /app
command: npm run docker-start
cms-sdep:
build:
context: ./dx-drupal8
environment:
MYSQL_DATABASE: ${CMS_SDEP_DB_NAME}
MYSQL_PASSWORD: ${CMS_SDEP_DB_PASSWORD}
MYSQL_USER: ${CMS_SDEP_DB_USER}
MYSQL_HOST: ${RDS_MYSQL_HOST}
MYSQL_PORT: ${RDS_MYSQL_PORT}
S3FS_BUCKET: ${S3FS_BUCKET}
S3FS_REGION: ${S3FS_REGION}
S3FS_HOSTNAME: ${S3FS_HOSTNAME}
S3FS_AWS_ACCESS_KEY: ${S3FS_AWS_ACCESS_KEY}
S3FS_AWS_SECRET_KEY: ${S3FS_AWS_SECRET_KEY}
S3FS_USE_PATH_STYLE_ENDPOINT: ${S3FS_USE_PATH_STYLE_ENDPOINT}
S3FS_S3_PUBLIC_URL: ${S3FS_S3_PUBLIC_URL}
S3FS_USE_HTTPS: ${S3FS_USE_HTTPS}
DRUPAL_HASH_SALT: ${CMS_SDEP_DRUPAL_HASH_SALT}
depends_on:
- rds-mysql
ports:
- '8081:80'
# volumes:
# - /var/www/html/modules
# - /var/www/html/profiles
# - /var/www/html/themes
# this takes advantage of the feature in Docker that a new anonymous
# volume (which is what we're creating here) will be initialized with the
# existing content of the image at the same location
# - /var/www/html/sites
restart: always
rds-mysql:
build:
context: ./rds-mysql
restart: always
env_file:
- ./.env
environment:
MYSQL_ROOT_PASSWORD: ${RDS_MYSQL_ROOT_PASSWORD}
ports:
- '3306:3306'
volumes:
- dx-rds-mysql:/var/lib/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- "8888:80"
environment:
- MYSQL_USERNAME=root
- MYSQL_ROOT_PASSWORD=${RDS_MYSQL_ROOT_PASSWORD}
- PMA_HOST=${RDS_MYSQL_HOST}
- PMA_PORT=${RDS_MYSQL_PORT}
depends_on:
- rds-mysql
localstack:
container_name: "${LOCALSTACK_DOCKER_NAME-localstack_main}"
image: localstack/localstack
ports:
- "4566:4566"
- "${LOCALSTACK_PORT_WEB_UI-9080}:${PORT_WEB_UI-9080}"
environment:
- EDGE_PORT=4566
- SERVICES=${LOCALSTACK_SERVICES- }
- DEBUG=${LOCALSTACK_DEBUG- }
- DATA_DIR=${LOCALSTACK_DATA_DIR- }
- PORT_WEB_UI=${LOCALSTACK_PORT_WEB_UI- }
- LAMBDA_EXECUTOR=${LOCALSTACK_LAMBDA_EXECUTOR- }
- KINESIS_ERROR_PROBABILITY=${LOCALSTACK_KINESIS_ERROR_PROBABILITY- }
- DOCKER_HOST=unix:///var/run/docker.sock
- HOST_TMP_FOLDER=${LOCALSTACK_TMPDIR}
- S3FS_BUCKET=${S3FS_BUCKET}
volumes:
- /tmp/localstack
- "/var/run/docker.sock:/var/run/docker.sock"
- ./aws:/docker-entrypoint-initaws.d
volumes:
# Persist mysql data
dx-rds-mysql:
# Cache node_modules
web-sdep-node-modules: