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