HETICvsEEMI/docker-compose.yml

55 lines
1.5 KiB
YAML

version: '3'
services:
client:
container_name: hve_client
restart: on-failure
build:
context: .
dockerfile: ./Dockerfile
volumes:
- ./client/nginx.conf:/etc/nginx/conf.d/default.conf:ro
environment:
- NODE_ENV=production
networks:
- default
- web
command: ['nginx', '-g', 'daemon off;']
# labels:
# - 'traefik.docker.network=web'
# - 'traefik.enable=true'
# - 'traefik.domain=hve.crvx.fr'
# - 'traefik.basic.frontend.rule=Host:hve.crvx.fr'
# - 'traefik.basic.port=80'
# - 'traefik.basic.protocol=http'
# - 'traefik.frontend.headers.SSLRedirect=true'
# - 'traefik.frontend.headers.STSSeconds=315360000'
# - 'traefik.frontend.headers.browserXSSFilter=true'
# - 'traefik.frontend.headers.contentTypeNosniff=true'
# - 'traefik.frontend.headers.forceSTSHeader=true'
# - "traefik.frontend.headers.contentSecurityPolicy=default-src 'self';frame-ancestors 'self';style-src 'self';script-src 'self';img-src 'self';font-src 'self'"
# - 'traefik.frontend.headers.referrerPolicy=no-referrer'
# - 'traefik.frontend.headers.frameDeny=true'
api:
container_name: hve_api
restart: on-failure
image: node:8
build:
context: .
dockerfile: ./server/Dockerfile
env_file:
- .env
environment:
- NODE_ENV=production
ports:
- '3000:3000'
networks:
- default
- postgres
command: ['node', '/api/server/index.js']
networks:
web:
external: true