This repository has been archived by the owner on Jun 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
66 lines (60 loc) · 1.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: '3'
networks:
app-tier:
driver: bridge
services:
nuxt-bstag:
container_name: nuxt-bstag
build:
context: ./docker/nodejs
user: ${ENV_DOCKER_USER}:${ENV_DOCKER_GROUP}
restart: always
environment:
- 'TZ=${TIMEZONE}'
- 'NODE_IMAGE_VER=${NODE_INS_VERSION}-${NODE_OS_VERSION}'
- 'PROJECT_DIR=${PROJECT_DIR}-staging'
- 'NODE_PORT=${NODE_PORT}'
- 'BUILD_FLAG=staging'
networks:
- app-tier
expose:
- '${NODE_PORT}'
volumes:
- ./public-html:/app:rw
nuxt-bprod:
container_name: nuxt-bprod
build:
context: ./docker/nodejs
user: ${ENV_DOCKER_USER}:${ENV_DOCKER_GROUP}
restart: always
environment:
- 'TZ=${TIMEZONE}'
- 'NODE_IMAGE_VER=${NODE_INS_VERSION}-${NODE_OS_VERSION}'
- 'PROJECT_DIR=${PROJECT_DIR}-production'
- 'NODE_PORT=${NODE_PORT}'
- 'BUILD_FLAG=production'
networks:
- app-tier
expose:
- '${NODE_PORT}'
volumes:
- ./public-html:/app:rw
httpd:
container_name: nginx
image: bitnami/nginx:${NGINX_VERSION}-${NGINX_OS_VERSION}
user: ${ENV_DOCKER_USER}:${ENV_DOCKER_GROUP}
restart: always
environment:
- 'TZ=${TIMEZONE}'
depends_on:
- nuxt-bstag
- nuxt-bprod
networks:
- app-tier
ports:
- '80:8080'
- '443:8443'
volumes:
- ./config/nginx/vhost:/opt/bitnami/nginx/conf/vhosts:ro
- ./logs/nginx/${NGINX_VERSION}:/opt/bitnami/nginx/logs:rw
- ./public-html:/app:rw