From 6517b10a0e157b4565080c969decd1ef2af1dd46 Mon Sep 17 00:00:00 2001 From: Justin Garrison Date: Wed, 23 Dec 2015 11:47:46 -0800 Subject: [PATCH] added docker-compose file with mariadb --- docker/docker-compose.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 docker/docker-compose.yml diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml new file mode 100644 index 000000000..33cb5fc35 --- /dev/null +++ b/docker/docker-compose.yml @@ -0,0 +1,22 @@ +gogs: + image: gogs/gogs:latest + links: + - db + volumes: + - /var/gogs:/data + ports: + - "10080:3000" + - "10022:22" + environment: + DB_TYPE: mysql + HOST: db + NAME: gogs + USER: gogs + PASSWD: changeme +db: + image: library/mariadb:latest + environment: + MYSQL_ROOT_PASSWORD: changeme + MYSQL_DATABASE: gogs + MYSQL_USER: gogs + MYSQL_PASSWORD: changeme