-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-example.yml
executable file
·68 lines (62 loc) · 1.5 KB
/
docker-compose-example.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
version: '3'
services:
####Drupal7####################################################
# d7:
# image: lawxen/drupal:d7-php74
# # volumes:
# # - ./html:/var/www/html
# container_name: d7
# ports:
# - 8081:80
# networks:
# - backend
####Drupal7 dev####################################################
# d7dev:
# image: lawxen/drupal:d9-php74-dev
# # volumes:
# # - ./html:/var/www/html
# container_name: d7dev
# ports:
# - 8082:80
# networks:
# - backend
####Drupal10 ####################################################
d10:
# image: lawxen/drupal:d10-php82-dev
image: lawxen/drupal:d10-php82
volumes:
- ./html:/var/www/html
container_name: d10
ports:
- 80:80
networks:
- backend
### Mariadb Container #######################################
mariadb:
image: mariadb:latest
volumes:
- ./mysql:/var/lib/mysql
- ./config/mysql/my.cnf:/etc/my.cnf
environment:
- MYSQL_ROOT_PASSWORD=password
ports:
- "3306"
container_name: mariadb
restart: always
networks:
- backend
### Redis Container #########################################
# redis:
# image: latest
# container_name: redis
# environment:
# - REDIS_PASSWORD=c4200bc580
# - ALLOW_EMPTY_PASSWORD=no
# ports:
# - "6379"
# networks:
# - backend
### Network ###############################################
networks:
backend:
driver: "bridge"