generated from azmisahin/azmisahin-software-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
39 lines (37 loc) · 961 Bytes
/
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
version: '3.8'
services:
application:
build:
context: .
# load operating system container
dockerfile: Dockerfile.${CONTAINER}
args:
# build
NAME: ${NAME}
WORK_DIR: ${WORK_DIR}
BUILD_DIR: ${BUILD_DIR}
DIST_DIR: ${DIST_DIR}
# application
REMOTE_IP_ADDRESS: ${REMOTE_IP_ADDRESS}
REMOTE_PORT: ${REMOTE_PORT}
CLIENT_MESSAGE: ${CLIENT_MESSAGE}
labels:
com.azmisahin.description: ${NAME}
com.azmisahin.department: "DEVOPS"
# stage
target: ${ENV}
container_name: ${NAME}-${CONTAINER}
environment:
# build
NAME: ${NAME}
WORK_DIR: ${WORK_DIR}
BUILD_DIR: ${BUILD_DIR}
DIST_DIR: ${DIST_DIR}
# application
REMOTE_IP_ADDRESS: ${REMOTE_IP_ADDRESS}
REMOTE_PORT: ${REMOTE_PORT}
CLIENT_MESSAGE: ${CLIENT_MESSAGE}
networks:
default: null
restart: "no"
tty: true