forked from NathanWalker/angular-seed-advanced
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.production.yml
More file actions
34 lines (30 loc) · 872 Bytes
/
docker-compose.production.yml
File metadata and controls
34 lines (30 loc) · 872 Bytes
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
version: '3'
services:
angular-seed:
build:
context: .
dockerfile: ./.docker/angular-seed.production.dockerfile
command: npm run build.prod
container_name: angular-seed-build-prod
image: angular-seed
networks:
- prod-network
volumes:
- ./dist:/home/app/angular-seed/dist
angular-seed-nginx:
command: /bin/bash -c "envsubst '$$NGINX_HOST $$NGINX_PORT' < /etc/nginx/conf.d/angular-seed.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
container_name: angular-seed-nginx-prod
environment:
- NGINX_HOST=localhost
- NGINX_PORT=80
image: nginx
networks:
- prod-network
ports:
- '5555:80'
volumes:
- ./.docker/nginx.conf:/etc/nginx/conf.d/angular-seed.template
- ./dist/prod:/var/www/dist/prod
networks:
prod-network:
driver: bridge