feat: Add docker env
This commit is contained in:
4
.dockerignore
Normal file
4
.dockerignore
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# Ignore everything
|
||||||
|
**
|
||||||
|
|
||||||
|
!dist
|
2
.env
Normal file
2
.env
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
DOCKER_CONTEXT=vert.weko.resilien
|
||||||
|
URL=scores.ceiba-conseil.com
|
4
Dockerfile
Normal file
4
Dockerfile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
FROM registry.weko.io/nginx-lowtech:0.0.9
|
||||||
|
|
||||||
|
# Copie des sources du site
|
||||||
|
COPY dist /usr/share/nginx/html
|
28
docker-compose.prod.yml
Normal file
28
docker-compose.prod.yml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
ceiba-log:
|
||||||
|
name: ceiba-log
|
||||||
|
ceiba-stats:
|
||||||
|
name: ceiba-stats
|
||||||
|
|
||||||
|
services:
|
||||||
|
scores_ceiba-prod:
|
||||||
|
container_name: ceiba-prod
|
||||||
|
build: .
|
||||||
|
image: registry.weko.io/scores_ceiba:latest
|
||||||
|
restart: always
|
||||||
|
labels:
|
||||||
|
traefik.enable: "true"
|
||||||
|
traefik.http.routers.ceiba.rule: "Host(`${URL}`)"
|
||||||
|
traefik.http.routers.ceiba.entrypoints: "web"
|
||||||
|
com.centurylinklabs.watchtower.enable: true
|
||||||
|
volumes:
|
||||||
|
- ceiba-log:/var/log/nginx
|
||||||
|
- ceiba-stats:/usr/share/nginx/html/stats
|
||||||
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
|
||||||
|
networks:
|
||||||
|
default:
|
||||||
|
name: traefik
|
20
docker-compose.staging.yml
Normal file
20
docker-compose.staging.yml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
default:
|
||||||
|
name: traefik
|
||||||
|
|
||||||
|
services:
|
||||||
|
scores_ceiba-staging:
|
||||||
|
container_name: ceiba-staging
|
||||||
|
build: .
|
||||||
|
image: registry.weko.io/scores_ceiba:staging
|
||||||
|
restart: always
|
||||||
|
labels:
|
||||||
|
traefik.enable: "true"
|
||||||
|
traefik.http.routers.ceiba-staging.rule: "Host(`staging.${URL}`)"
|
||||||
|
traefik.http.routers.ceiba-staging.entrypoints: "web"
|
||||||
|
com.centurylinklabs.watchtower.enable: true
|
||||||
|
volumes:
|
||||||
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
Reference in New Issue
Block a user