Skip to content
Snippets Groups Projects
Commit dd2fe76f authored by michael.minelli's avatar michael.minelli
Browse files

Containers => Replace bind mount by copy (for deployment from external server)

parent 63d43c82
No related branches found
No related tags found
No related merge requests found
FROM mariadb:10.11
LABEL maintainer="Michaël Minelli <michael-jean.minelli@hesge.ch>"
ADD Database/docker-entrypoint-initdb.d/ /docker-entrypoint-initdb.d/
\ No newline at end of file
FROM nginx:alpine
LABEL maintainer="Michaël Minelli <michael-jean.minelli@hesge.ch>"
## Copy our default nginx config
ADD Proxy/certs/ /dojo/certs/
ADD Proxy/default.conf /etc/nginx/conf.d/
EXPOSE 80
EXPOSE 443
\ No newline at end of file
......@@ -2,7 +2,9 @@ version: '3.8'
services:
dojo-database:
container_name: dojo-database
image: mariadb:10.11
build:
context: ./
dockerfile: Dockerfile_Dojo_Database
environment:
MARIADB_DATABASE: '${DATABASE_NAME}'
MARIADB_ROOT_PASSWORD: '${DATABASE_ROOT_PASSWORD}'
......@@ -14,7 +16,6 @@ services:
- dojo-database
volumes:
- dojo-database:/var/lib/mysql
- ./Database/docker-entrypoint-initdb.d/:/docker-entrypoint-initdb.d/
restart: always
adminer:
......@@ -62,11 +63,10 @@ services:
dojo-proxy:
container_name: dojo-proxy
image: nginx:alpine
build:
context: ./
dockerfile: Dockerfile_Dojo_Proxy
restart: 'always'
volumes:
- ./Proxy/certs/:/dojo/certs/
- ./Proxy/default.conf:/etc/nginx/conf.d/default.conf
networks:
dojo-network:
aliases:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment