generated from smatechnologies/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
66 lines (66 loc) · 2.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
# Version: 1.0.6
#
# Docker Compose file to spin up two preconfigured containers : MS SQL Server on Linux and OpCon Server.
# You'll need to specify at least VOLUME_PATH and DB_PASSWORD env variables via .env file to get this running with defaults.
#
# Detailed instructions here : https://github.com/SMATechnologies/opcon-docker#docker-compose-instructions
version: '3.7'
networks:
default:
name: ${CONTAINER_PREFIX:-opcon}-network
services:
opcon-mssql:
image: mcr.microsoft.com/mssql/server:${MSSQL_VERSION:-2017-latest}
container_name: ${CONTAINER_PREFIX:-opcon}-mssql
hostname: ${MSSQL_HOSTNAME:-opcon-mssql}
volumes:
- type: volume
source: opcon-mssql
target: /var/opt/mssql
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=${SQL_ADMIN_PASSWORD:?SQL_ADMIN_PASSWORD}
- TZ=${TZ:-UTC}
ports:
- "${MSSQL_PORT:-1433}:1433"
restart: always
opcon-core:
image: ${OPCON_REPOSITORY:-smatechnologies/opcon-server}:${OPCON_VERSION:-20.00-latest}
container_name: ${CONTAINER_PREFIX:-opcon}-core
hostname: ${OPCON_HOSTNAME:-opcon-core}
depends_on:
- opcon-mssql
environment:
- SQL_ADMIN_USER=${SQL_ADMIN_USER:-sa}
- SQL_ADMIN_PASSWORD=${SQL_ADMIN_PASSWORD}
- SQL_AUTH=${SQL_AUTH}
- DB_USER_NAME=${DB_USER_NAME:-opconsam}
- DB_PASSWORD=${DB_PASSWORD:?DB_PASSWORD}
- DB_SERVER_NAME=${CONTAINER_PREFIX:-opcon}-mssql
- DATABASE_NAME=${DATABASE_NAME:-OpConxps}
- DB_CONFIGURATION=${DB_CONFIGURATION}
- DB_SETUP=${DB_SETUP:-true}
- DB_LOGICAL_DATA_FILENAME=${DB_LOGICAL_DATA_FILENAME}
- PATH_TO_DATABASE_DATA_FILE=/var/opt/mssql/data/${DATABASE_NAME:-OpConxps}_Data.MDF
- DB_LOGICAL_LOG_FILENAME=${DB_LOGICAL_LOG_FILENAME}
- PATH_TO_DATABASE_LOG_FILE=/var/opt/mssql/data/${DATABASE_NAME:-OpConxps}_Log.LDF
- SMTP_SERVER_NAME=${SMTP_SERVER_NAME}
- NOTIFY_EMAIL_ADDRESS=${NOTIFY_EMAIL_ADDRESS}
- NOTIFY_DOMAIN_NAME=${NOTIFY_DOMAIN_NAME}
- CREATE_API_CERTIFICATE=${CREATE_API_CERTIFICATE:-true}
- API_CERTIFICATE_PATH=${API_CERTIFICATE_PATH}
- API_CERTIFICATE_PASSWORD=${API_CERTIFICATE_PASSWORD}
- TZ=${TZ:-UTC}
- LANG=${LANG:-en_US.utf-8}
- LICENSE=${LICENSE}
- ENABLE_LDAPMON=${ENABLE_LDAPMON}
- NO_RUN=${NO_RUN}
volumes:
- $VOLUME_PATH/core/config:/app/config
- $VOLUME_PATH/core/log:/app/log
ports:
- "${WEB_PORT:-443}:443"
restart: always
volumes:
opcon-mssql:
name: ${CONTAINER_PREFIX:-opcon}-mssql