summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Bentele2021-05-20 13:26:40 +0200
committerManuel Bentele2021-05-20 13:26:40 +0200
commitc46de4f8176f303e6e5743ce657753ca41c7008d (patch)
tree2613f71657ef6e70fb301eb1f630b6bedb3561e5
parent[server] Save VM images of the Docker setup on a Docker volume (diff)
downloadtutor-module-c46de4f8176f303e6e5743ce657753ca41c7008d.tar.gz
tutor-module-c46de4f8176f303e6e5743ce657753ca41c7008d.tar.xz
tutor-module-c46de4f8176f303e6e5743ce657753ca41c7008d.zip
[server] Add phpMyAdmin container to Docker setup
-rw-r--r--dozentenmodulserver/docker-compose.yml21
1 files changed, 19 insertions, 2 deletions
diff --git a/dozentenmodulserver/docker-compose.yml b/dozentenmodulserver/docker-compose.yml
index 387979e3..c125e738 100644
--- a/dozentenmodulserver/docker-compose.yml
+++ b/dozentenmodulserver/docker-compose.yml
@@ -3,7 +3,7 @@ services:
dozmod-server:
container_name: dozmod-server
image: dozmod-server:latest
- hostname: dozmod-server
+ hostname: server.dozmod
build:
context: .
dockerfile: pkg/docker/dozmod-server_dockerfile
@@ -28,7 +28,7 @@ services:
container_name: dozmod-database
image: mariadb:latest
restart: on-failure
- hostname: dozmod-database
+ hostname: database.dozmod
environment:
MYSQL_DATABASE: sat
MYSQL_ROOT_PASSWORD: dozmod
@@ -39,6 +39,23 @@ services:
dozmod:
ipv4_address: 192.168.200.20
ipv6_address: fd03:4b1d:5707:c8::14
+ dozmod-phpmyadmin:
+ container_name: dozmod-phpmyadmin
+ image: phpmyadmin:latest
+ hostname: phpmyadmin.dozmod
+ restart: on-failure
+ environment:
+ PMA_HOST: 192.168.200.20
+ PMA_VERBOSE: database.dozmod
+ MYSQL_ROOT_PASSWORD: dozmod
+ depends_on:
+ - dozmod-database
+ ports:
+ - 8080:80
+ networks:
+ dozmod:
+ ipv4_address: 192.168.200.30
+ ipv6_address: fd03:4b1d:5707:c8::1e
volumes:
dozmod-server:
name: dozmod-server