forked from govcms-extras/govcms-ops-d10
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
76 lines (71 loc) · 1.96 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
services:
##########################################
# govcms: The GovCMS drupal 10 site used by local PoC
##########################################
govcms:
build:
context: .
dockerfile: $PWD/Dockerfile.govcms
secrets:
- github_token
ports:
- 8888:80
volumes:
- /var/www/html/sites
- ./sites/govcms/modules:/app/web/modules/develop
- ./sites/govcms/themes:/app/web/themes/develop
- ./sites/govcms/config:/app/web/profiles/govcms/config
environment:
GITHUB_TOKEN: /run/secrets/github_token
secrets:
- github_token
##########################################
# drupal: The drupal site used by local
##########################################
drupal:
build:
context: .
dockerfile: $PWD/Dockerfile.drupal
secrets:
- github_token
ports:
- 8889:80
volumes:
- /var/www/html/sites
- ./sites/drupal10/modules:/var/www/html/modules/develop
- ./sites/drupal10/themes:/var/www/html/themes/develop
environment:
GITHUB_TOKEN: /run/secrets/github_token
secrets:
- github_token
##########################################
# drupal9: The drupal site used by local
##########################################
drupal9:
build:
context: .
dockerfile: $PWD/Dockerfile.drupal9
ports:
- 8890:80
volumes:
- /var/www/html/sites
- ./sites/drupal9/modules:/var/www/html/modules/develop
- ./sites/drupal9/themes:/var/www/html/themes/develop
##########################################
# mariadb: The database used by local
##########################################
mariadb:
image: mariadb
environment:
MARIADB_ROOT_PASSWORD: root
MARIADB_DATABASE: drupal
MARIADB_USER: drupal
MARIADB_PASSWORD: drupal
volumes:
- ./database:/var/lib/mysql
secrets:
github_token:
file: ./configs/auth.json
networks:
default:
external: false