-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (56 loc) · 1.28 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
version: '3.8'
services:
database:
image: mysql:8.0.35-debian
container_name: mysql-ozulo
restart: always
cpuset: "0-1"
mem_limit: "2g"
mem_reservation: "512m"
cpus: "1"
env_file:
- ./.env
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
expose:
- 3306
volumes:
- './volumes/mysql-data/db:/var/lib/mysql'
- './data/sql:/docker-entrypoint-initdb.d'
networks:
- internal
drupal:
image: chialab/php:8.2-fpm
container_name: drupal-ozulo
depends_on:
- database
env_file:
- ./.env
restart: unless-stopped
networks:
- internal
- external
volumes:
- './volumes/ozulo-drupal10:/var/www/html'
- './config/drupal/settings.php:/var/www/html/sites/default/settings.php'
webserver:
image: nginx:latest
container_name: webserver-ozulo
depends_on:
- drupal
restart: unless-stopped
ports:
- 8011:80
volumes:
- ./volumes/ozulo-drupal10:/var/www/html
- ./config/nginx:/etc/nginx/conf.d
networks:
- external
networks:
external:
driver: bridge
internal:
driver: bridge