2019-10-20 17:30:18 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
client:
|
|
|
|
container_name: hve_client
|
|
|
|
restart: on-failure
|
|
|
|
build:
|
2019-10-29 23:01:23 +00:00
|
|
|
context: ./client
|
2019-10-20 17:30:18 +00:00
|
|
|
dockerfile: ./Dockerfile
|
|
|
|
volumes:
|
|
|
|
- ./client/nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
|
|
|
environment:
|
|
|
|
- NODE_ENV=production
|
|
|
|
networks:
|
|
|
|
- default
|
2019-10-29 23:01:23 +00:00
|
|
|
#- web
|
|
|
|
ports:
|
|
|
|
- 8080:80
|
2019-10-20 17:30:18 +00:00
|
|
|
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:
|
2019-10-29 23:01:23 +00:00
|
|
|
context: ./server
|
|
|
|
dockerfile: ./Dockerfile
|
2019-10-20 17:30:18 +00:00
|
|
|
environment:
|
|
|
|
- NODE_ENV=production
|
|
|
|
ports:
|
|
|
|
- '3000:3000'
|
|
|
|
networks:
|
|
|
|
- default
|
2019-10-29 23:01:23 +00:00
|
|
|
#- web
|
|
|
|
command: ['node', 'index.js']
|
2019-10-20 17:30:18 +00:00
|
|
|
|
2019-10-29 23:01:23 +00:00
|
|
|
#networks:
|
|
|
|
# web:
|
|
|
|
# external: true
|