/
docker-compose.yaml
53 lines (49 loc) · 1.29 KB
/
docker-compose.yaml
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
version: "3.8"
services:
gip-mysql:
image: mysql:5
container_name: gip-mysql
networks:
gip-net:
ipv4_address: ${MYSQL_IP}
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${DB_ROOT_USER_PASSWORD}
MYSQL_DATABASE: ${DB_SSID}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASSWORD}
volumes:
- ./mysql:/docker-entrypoint-initdb.d
- ${DB_DATA_DIR}:/var/lib/mysql
gip:
image: gestioip/gestioip:3570
container_name: gip
networks:
gip-net:
ipv4_address: ${GIP_IP}
restart: always
environment:
DB_HOST: ${DB_HOST}
DB_PORT: ${DB_PORT}
DB_SSID: ${DB_SSID}
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
BCK_USER_DISABLED: ${BCK_USER_DISABLED}
BCK_USER: ${BCK_USER}
BCK_USER_PASS: ${BCK_USER_PASS}
USE_SSL: ${USE_SSL}
SERVER_NAME: ${SERVER_NAME}
volumes:
- ./apache/certs:/etc/apache2/ssl/certs
- ./apache/keys:/etc/apache2/ssl/keys
- ./apache/conf:/usr/share/gestioip/etc/apache
ports:
- ${HOST_PORT}:${CONTAINER_PORT}
networks:
gip-net:
ipam:
driver: default
config:
- subnet: ${SUBNET}
gateway: ${GATEWAY}