-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
executable file
·51 lines (51 loc) · 1.18 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
version: '3'
services:
drupal-dev:
restart: always
container_name: drupal-dev
hostname: drupal-dev
build:
context: ./
dockerfile: Dockerfile.dev
volumes:
- ./app-dev:/var/www/html
- ./root-dev:/root
- ./scripts:/scripts
- ./share:/share
ports:
- "2222:22"
- "8080:80"
mysql-dev:
restart: always
container_name: mysql-dev
hostname: mysql-dev
env_file:
- mysql.env
image: mysql:5.7
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci --max_allowed_packet=16M
drupal-prod:
restart: always
container_name: drupal-prod
hostname: drupal-prod
build:
context: ./
dockerfile: Dockerfile.prod
volumes:
- ./app-prod:/var/www/html
- ./root-prod:/root
- ./share:/share
ports:
- "81:80"
mysql-prod:
restart: always
container_name: mysql-prod
hostname: mysql-prod
env_file:
- mysql.env
image: mysql:5.7
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci --max_allowed_packet=16M
adminer:
image: adminer
restart: always
ports:
- "8081:8080"