-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
111 lines (104 loc) · 2.83 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
version: '3.4'
services:
mariadb:
image: ${COMPOSE_DOCKER_REGISTRY}/infocmdb-db:${IMAGE_TAG:-development}
build:
context: ./
dockerfile: ./docker/mariadb/Dockerfile
args:
COMPOSE_ENV_DB_VERSION: "${COMPOSE_ENV_DB_VERSION}"
DOCKER_TIMEZONE: "${DOCKER_TIMEZONE}"
logging:
driver: "json-file"
options:
max-size: "1M"
max-file: "10"
environment:
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
- MYSQL_DATABASE=${DB_DATABASE}
restart: always
ports:
- '${DOCKER_DB_PORT}:3306'
networks:
default:
aliases:
- db
php:
image: ${COMPOSE_DOCKER_REGISTRY}/infocmdb-php:${IMAGE_TAG:-development}
build:
context: ./
dockerfile: ./docker/php/Dockerfile
args:
APPLICATION_ENV: "production"
COMPOSE_ENV_PHP_VERSION: "${COMPOSE_ENV_PHP_VERSION}"
GOLANG_VERSION: "${COMPOSE_ENV_GOLANG_VERSION}"
APP_LIBRARY_PERL_REPO: "${APP_LIBRARY_PERL_REPO}"
APP_LIBRARY_GOLANG_REPO: "${APP_LIBRARY_GOLANG_REPO}"
BUILD_NPROC: "${NPROC:-4}"
BUILD_PERLPROC: "${PERLPROC:-10}"
logging:
driver: "json-file"
options:
max-size: "1M"
max-file: "10"
tmpfs:
- /app/data/cache:mode=1777
- /app/data/session:mode=1777
- /app/data/tmp:mode=1777
environment:
- APPLICATION_ENV=production
- APP_LIBRARY_PERL_REPO=${APP_LIBRARY_PERL_REPO}
- APP_LIBRARY_GOLANG_REPO=${APP_LIBRARY_GOLANG_REPO}
- DB_HOST=mariadb
- DB_DATABASE=${DB_DATABASE}
- DB_USERNAME=${DB_USERNAME}
- DB_PASSWORD=${DB_PASSWORD}
- DB_ROOT_USERNAME=${DB_ROOT_USERNAME}
- DB_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
- APP_WWW_DATA_USERID=${APP_WWW_DATA_USERID:-}
restart: always
depends_on:
- mariadb
- web
networks:
default:
cron:
image: ${COMPOSE_DOCKER_REGISTRY}/infocmdb-cron:${IMAGE_TAG:-development}
build:
context: ./
dockerfile: ./docker/cron/Dockerfile
args:
APPLICATION_ENV: production
logging:
driver: "json-file"
options:
max-size: "1M"
max-file: "10"
restart: always
depends_on:
- php
networks:
- default
web:
image: ${COMPOSE_DOCKER_REGISTRY}/infocmdb-web:${IMAGE_TAG:-development}
build:
context: ./
dockerfile: ./docker/nginx/Dockerfile
args:
APPLICATION_ENV: "production"
COMPOSE_ENV_NGINX_VERSION: "${COMPOSE_ENV_NGINX_VERSION}"
logging:
driver: "json-file"
options:
max-size: "1M"
max-file: "10"
environment:
- DOCKER_WEB_HOSTNAME=${DOCKER_WEB_HOSTNAME}
- DOCKER_WEB_HOSTALIAS=${DOCKER_WEB_HOSTALIAS}
- APPLICATION_ENV=production
restart: always
volumes:
data-volume:
database-volume:
networks:
default: