-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.yml
41 lines (40 loc) · 975 Bytes
/
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
version: '3.1'
services:
db:
image: mysql:5.7
container_name: gov_database
restart: always
volumes:
- ./sql:/docker-entrypoint-initdb.d/
environment:
MYSQL_DATABASE: "${DB}"
MYSQL_USER: "${DBU}"
MYSQL_PASSWORD: "${DBP}"
MYSQL_RANDOM_ROOT_PASSWORD: "1"
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: gov_db_admin
restart: always
environment:
PMA_HOST: "${DBH}"
PMA_USER: "${DBU}"
PMA_PASSWORD: "${DBP}"
PMA_ARBITRARY: "1"
ports:
- 9999:80
drupal:
#image: drupal:9-php7.4-apache
build: .
container_name: gov_interface
restart: always
ports:
- 9998:80
working_dir: /opt
volumes:
- .:/opt:z
environment:
HOST: "${DBH}"
DBASE: "${DB}"
USER: "${DBU}"
PASS: "${DBP}"
command: bash -c "composer update && rm /var/www/html && ln -s /opt/web /var/www/html && /usr/local/bin/apache2-foreground"