obolus/docker-compose.prod.yml

33 lines
536 B
YAML
Raw Normal View History

2019-05-22 18:36:09 +00:00
version: '3.6'
x-defaults: &default
image: node:12-alpine
restart: always
working_dir: /app
command: npm run prod
2019-05-23 07:42:46 +00:00
ports:
- 80
networks:
traefik:
external: true
2019-05-22 18:36:09 +00:00
services:
api:
<<: *default
volumes:
- ./api:/app
www:
<<: *default
volumes:
2019-05-23 07:42:46 +00:00
- ./www:/app
networks:
- default
- traefik
labels:
- traefik.enable=true
- traefik.port=80
- traefik.docker.network=traefik
- traefik.backend=obolus
- traefik.frontend.rule=Host:obolus.nicco.io