-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
66 lines (65 loc) · 1.49 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
version: '2.1'
volumes:
ownclouddb:
driver: "${VOLUME_DRIVER}"
owncloud_data:
driver: "${VOLUME_DRIVER}"
owncloud_apache2:
driver: "${VOLUME_DRIVER}"
networks:
owncloud-network:
front_proxy-network:
services:
ownclouddb:
image: mysql:${MYSQL_VERSION}
restart: unless-stopped
logging:
driver: "journald"
ports:
- "3306"
networks:
- owncloud-network
volumes:
- ownclouddb:/var/lib/mysql
environment:
constraint:volume.driver: =${VOLUME_DRIVER}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
owncloud:
image: owncloud:${OWNCLOUD_VERSION}
restart: unless-stopped
logging:
driver: "journald"
ports:
- "443"
- "80"
depends_on:
- "ownclouddb"
networks:
- owncloud-network
volumes:
- owncloud_data:/var/www/html
- owncloud_apache2:/etc/apache2
environment:
constraint:volume.driver: =${VOLUME_DRIVER}
owncloud-proxy:
image: openfrontier/nginx-etcd:${NGINX_VERSION}
restart: unless-stopped
logging:
driver: "journald"
ports:
- "80"
- "443"
depends_on:
- "ownclouddb"
- "owncloud"
networks:
- owncloud-network
- front_proxy-network
volumes:
- /etc/localtime:/etc/localtime:ro
environment:
ETCD_CLIENT_IP: ${ETCD_CLIENT_IP}
PROJECT_NAME: ${PROJECT_NAME}