-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (41 loc) · 967 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
42
43
44
45
46
version: '3'
services:
database:
image: mariadb:latest
container_name: nl.cameralucida_db
restart: always
secrets:
- db_user
- db_password
environment:
MYSQL_ROOT_PASSWORD_FILE: /run/secrets/db_password
MYSQL_DATABASE: drupal_cameralucida
MYSQL_USER_FILE: /run/secrets/db_user
MYSQL_PASSWORD_FILE: /run/secrets/db_password
volumes:
- db_data:/var/lib/mysql
drupal:
image: drupal:latest
depends_on:
- database
container_name: nl.cameralucida_drupal
restart: always
ports:
- 8083:80
volumes:
- ./modules:/var/www/html/modules
- ./profiles:/var/www/html/profiles
- ./themes:/var/www/html/themes
- drupal_sites:/var/www/html/sites
secrets:
db_user:
file: .secrets/db_user.txt
db_password:
file: .secrets/db_password.txt
volumes:
drupal_sites:
db_data:
networks:
default:
external: true
name: docker-network