forked from unite-cms/unite-cms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·82 lines (74 loc) · 2.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
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: '3.6'
volumes:
mysql_data:
minio_data:
# only needed for osX NFS share
nfsmount:
driver: local
driver_opts:
type: nfs
o: addr=host.docker.internal,rw,nolock,hard,nointr,nfsvers=3
device: ":${PWD}/"
services:
unitecms-mysql:
image: centos/mysql-57-centos7
container_name: unitecms-mysql
restart: always
environment:
- MYSQL_USER=${DATABASE_USER}
- MYSQL_PASSWORD=${DATABASE_PASSWORD}
- MYSQL_DATABASE=${DATABASE_NAME}
- MYSQL_ROOT_PASSWORD=root123456
ports:
- "3307:3306"
volumes:
- mysql_data:/var/lib/mysql
unitecms-web:
image: unitecms/docker-unite
build: ./.docker/unite-cms
container_name: unitecms-web
working_dir: /app/unite-cms
restart: always
depends_on:
- unitecms-mysql
environment:
- ROUTING_APPROACH=${ROUTING_APPROACH}
- DEFAULT_HOSTNAME=${DEFAULT_HOSTNAME}
- DATABASE_NAME=${DATABASE_NAME}
- DATABASE_USER=${DATABASE_USER}
- DATABASE_PASSWORD=${DATABASE_PASSWORD}
- DATABASE_HOST=unitecms-mysql
- DATABASE_PORT=3306
- APP_ENV=${APP_ENV}
- APP_SECRET=${APP_SECRET}
- LOCALE_DEFAULT=${LOCALE_DEFAULT}
- MAILER_SENDER=${MAILER_SENDER}
- MAILER_URL=${MAILER_URL}
volumes:
# osX NFS share
- "nfsmount:/app/unite-cms"
# mount on a general linux
#- "./:/app/unite-cms"
#- ./.docker/unite-cms/root/etc/nginx/conf.d/app.conf:/etc/nginx/conf.d/app.conf
#- ./.docker/unite-cms/root/etc/php-fpm.d/www.conf:/etc/php-fpm.d/www.conf
#- ./var/log/php:/var/log/php
#- ./var/log/nginx:/var/log/nginx
ports:
- "8080:8080"
#minio:
# image: minio/minio
# container_name: minio
# restart: always
# ports:
# - "9000:9000"
# volumes:
# - minio_data:/data
# environment:
# - "MINIO_ACCESS_KEY=${MINIO_ACCESS_KEY}"
# - "MINIO_SECRET_KEY=${MINIO_SECRET_KEY}"
# command: server /data
#mailcatcher:
# image: yappabe/mailcatcher
# ports:
# - 1025:1025
# - 1080:1080