-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
67 lines (65 loc) · 1.44 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
version: "3.9"
services:
mysql:
container_name: timesheet_mysql
restart: always
image: mysql:latest
environment:
MYSQL_ROOT_PASSWORD: 'hj*&*&hdhj'
MYSQL_USER: 'timesheet'
MYSQL_PASS: 'y9nhzJQR3'
MYSQL_DATABASE: 'timesheet'
volumes:
- type: volume
source: datavolume
target: /var/lib/mysql
volume:
nocopy: true
ports:
- "3306:3306"
timesheetapp:
container_name: timesheet-app
restart: always
image: timesheet.568
environment:
MYSQL_HOST: 'timesheet_mysql'
MYSQL_DB: 'timesheet'
MYSQL_USER: 'timesheet'
MYSQL_PASS: 'y9nhzJQR3'
MYSQL_PORT: '3306'
SITE_URL: 'https://localhost:8088/'
ZK_IP: '10.20.15.10'
ZK_PORT: 4370
volumes:
- type: volume
source: sslvolume
target: /opt/ssl
volume:
nocopy: true
- type: volume
source: databackup
target: /var/backup
volume:
nocopy: true
ports:
- "8080:80"
- "8088:443"
volumes:
datavolume:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '/opt/mysql_data'
databackup:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '/opt/timesheet_databackup'
sslvolume:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '/opt/ssl' #568int.com.pem should be here for the HTTPS