-
Notifications
You must be signed in to change notification settings - Fork 37
/
docker-compose.yml
60 lines (55 loc) · 1.42 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
version: '3.9'
services:
nettemp-db:
container_name: nettemp-db
image: mariadb
restart: unless-stopped
networks:
- nettemp-net
volumes:
- nettemp-db:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro
environment:
MARIADB_DATABASE: nettemp
MARIADB_USER: nettemp
MARIADB_PASSWORD: nettemp
MARIADB_ROOT_PASSWORD: nettemp
MARIADB_MYSQL_LOCALHOST_USER: 1
healthcheck:
test: ["CMD", "healthcheck.sh", "--su-mysql", "--connect", "--innodb_initialized"]
interval: 10s
timeout: 3s
retries: 3
nettemp:
container_name: nettemp
image: przemeksdocker/nettemp
restart: unless-stopped
networks:
- nettemp-net
volumes:
- nettemp-data:/var/www/nettemp/data
- /etc/localtime:/etc/localtime:ro
environment:
MYSQL_HOST: nettemp-db
MYSQL_USER: nettemp
MYSQL_PASSWORD: nettemp
MYSQL_DB: nettemp
# HTTPS: False # if not using https
ports:
- "443:443" # selfsigned ssl cert
#- "8000" # no ssl eg. for traefik
#- "8000:8000" # no ssl
- "80:80" # redirect to 443
links:
- "nettemp-db:nettemp-db"
depends_on:
nettemp-db:
condition: service_healthy
volumes:
nettemp-db:
name: nettemp-db
nettemp-data:
name: nettemp-data
networks:
nettemp-net:
name: nettemp-net