forked from teracyhq-incubator/angular-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.tpl.yml
31 lines (29 loc) · 950 Bytes
/
docker-compose.tpl.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
version: '3'
services:
dev:
container_name: ${PROJECT_NAME}_dev
build:
context: .
dockerfile: Dockerfile-dev
args:
- CI_BUILD_ID=${CI_BUILD_ID}
- CI_BUILD_REF=${CI_BUILD_REF}
- CI_BUILD_REF_NAME=${CI_BUILD_REF_NAME}
- CI_BUILD_TIME=${CI_BUILD_TIME}
- CI_REGISTRY_IMAGE=${CI_REGISTRY_IMAGE}
- CI_PROJECT_NAME=${CI_PROJECT_NAME}
# we use image for faster developing with `npm install` already run
image: ${DOCKER_IMAGE_DEV:-${DOCKER_IMAGE_DEV}}
command: bash -c "yarn run start"
environment:
NODE_ENV: development
VIRTUAL_HOST: ${DOMAIN_DEV}
HTTPS_METHOD: noredirect # support both http and https
volumes:
- .:/opt/app
ports:
- "4200"
restart: unless-stopped
# to get this work with https://github.com/jwilder/nginx-proxy
# related: https://github.com/jwilder/nginx-proxy/issues/305
network_mode: bridge