forked from ladybirdweb/faveo-helpdesk-docker-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (61 loc) · 1.78 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
version: "3.8"
services:
faveo-apache:
image: ladybird/faveo-apache-v3
container_name: ${DOMAINNAME}-apache
networks:
faveo-network:
ipv4_address: 172.24.0.2
ports:
- "80:80"
- "443:443"
volumes:
- ./apache/000-default.conf:/etc/apache2/sites-available/000-default.conf
- ./${HOST_ROOT_DIR}:/var/www/html/
- ${CUR_DIR}/certbot/letsencrypt/etc/letsencrypt/live/${DOMAINNAME}/cert.pem:/var/imported/ssl/cert.pem
- ${CUR_DIR}/certbot/letsencrypt/etc/letsencrypt/live/${DOMAINNAME}/privkey.pem:/var/imported/ssl/privkey.pem
- ${CUR_DIR}/certbot/letsencrypt/etc/letsencrypt/live/${DOMAINNAME}/fullchain.pem:/var/imported/ssl/fullchain.pem
restart: always
faveo-mariadb:
image: mariadb:latest
container_name: ${DOMAINNAME}-mariadb
volumes:
- db-volume:/var/lib/mysql
networks:
faveo-network:
ipv4_address: 172.24.0.3
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
restart: on-failure
faveo-redis:
image: redis
container_name: ${DOMAINNAME}-redis
restart: always
networks:
faveo-network:
ipv4_address: 172.24.0.4
faveo-supervisor:
image: ladybird/faveo-supervisor-v3
container_name: ${DOMAINNAME}-supervisor
volumes:
- ./${HOST_ROOT_DIR}/:/var/www/html/
ports:
- "9001:9001"
depends_on:
- faveo-redis
- faveo-mariadb
networks:
faveo-network:
ipv4_address: 172.24.0.5
restart: on-failure
volumes:
db-volume:
external:
name: ${DOMAINNAME}-faveoDB
networks:
faveo-network:
external:
name: ${DOMAINNAME}-faveo