-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
75 lines (74 loc) · 1.51 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
version: '3'
services:
# Web
wordpress:
build:
context: wordpress
restart: always
ports:
- 8443:443
environment:
WORDPRESS_DB_HOST: wordpress-db
WORDPRESS_DB_USER: exampleuser
WORDPRESS_DB_PASSWORD: examplepass
WORDPRESS_DB_NAME: exampledb
volumes:
- wordpress:/var/www/html
networks:
frontend:
db:
wordpress-db:
image: mysql
restart: always
environment:
MYSQL_DATABASE: exampledb
MYSQL_USER: exampleuser
MYSQL_PASSWORD: examplepass
MYSQL_RANDOM_ROOT_PASSWORD: '1'
volumes:
- wordpress_db:/var/lib/mysql
networks:
db:
# ERP
xentral:
build:
context: xentral
restart: always
ports:
- 8081:80
volumes:
- xentral_userdata:/var/www/html/userdata
- xentral_conf:/var/www/html/conf
# Allows do run the update faster after recreating the container
- xentral_download:/var/www/html/download
networks:
frontend:
backend:
db:
# MySQL
xentral-db:
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_DATABASE: xentral
MYSQL_USER: user
MYSQL_PASSWORD: pass
MYSQL_ROOT_PASSWORD: example
volumes:
- xentral_db:/var/lib/mysql
networks:
db:
volumes:
# WordPress
wordpress:
wordpress_db:
# Xentral
xentral_userdata:
xentral_conf:
xentral_download:
xentral_db:
networks:
frontend:
backend:
db: