-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.sample.yml
62 lines (58 loc) · 2.79 KB
/
docker-compose.sample.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
version: '3.3'
# this is a SAMPLE file. Do not use for build or deployments
# use the following to restrict which OS this is built on
# containerOS: alpine
services:
php5:
# build arguments, only needed for building
build:
args:
CBF_VERSION: ${CBF_VERSION:-}
CONTAINER_NAME: php5
FROM_BASE: ${DOCKER_REGISTRY:-ubuntu-s2:5000/}${CONTAINER_OS:-alpine}/nginx-base/${NGINX_VERSION:-1.14.2}:${BASE_TAG:-latest}
PHP5_VERSION: ${PHP5_VERSION:-5.6.40-r0}
cache_from:
- ${DOCKER_REGISTRY:-ubuntu-s2:5000/}thirdparty/${CONTAINER_OS:-alpine}:${OS_VERSION:-3.12.4}
- ${DOCKER_REGISTRY:-ubuntu-s2:5000/}${CONTAINER_OS:-alpine}/base_container:${BASE_TAG:-latest}
- ${DOCKER_REGISTRY:-ubuntu-s2:5000/}${CONTAINER_OS:-alpine}/supervisord:${BASE_TAG:-latest}
- ${DOCKER_REGISTRY:-ubuntu-s2:5000/}${CONTAINER_OS:-alpine}/nginx-base/${NGINX_VERSION:-1.14.2}:${BASE_TAG:-latest}
context: .
dockerfile: Dockerfile
labels:
container.build.time: $CONTAINER_BUILD_TIME
container.fingerprint: $CONTAINER_FINGERPRINT
container.git.refs: $CONTAINER_GIT_REFS
container.git.commit: $CONTAINER_GIT_COMMIT
container.git.url: $CONTAINER_GIT_URL
container.origin: $CONTAINER_ORIGIN
container.original.name: php5
version.cbf: $CBF_VERSION
# common arguments, for building and deploy
container_name: php5
environment:
DEBUG_TRACE: ${DEBUG_TRACE:-0}
SUPERVISORD_PASS_FILE: /run/secrets/supervisord.pwd
SUPERVISORD_USER: $CFG_USER
# PWD_PROTECTED: 'true'
# WEB_USER_ID: $CFG_USER
# WEB_USER_PASS_FILE: /run/secrets/web_user.pwd
hostname: php5
image: ${DOCKER_REGISTRY:-ubuntu-s2:5000/}${CONTAINER_OS:-alpine}/php/${PHP5_VERSION:-5.6.40-r0}:${CONTAINER_TAG:-latest}
# deploy arguments, not needed for building
logging: # limit size of logs @runtime so that we do not run out of space
driver: json-file
options:
max-file: "3"
max-size: "10m"
ports: #ports exposed
- 80:80
- 9001:9001
restart: unless-stopped # only use when building a 'service container'
secrets: # references to 'secrets' section below
- supervisord.pwd
volumes:
- ./vols/log:/var/log # do not save aplication logs inside container
# secrets only needed for deploy
secrets:
supervisord.pwd:
file: ~/.inf/secrets/bobb.password