diff --git a/hosts/www.hacklab.to/.env.example b/hosts/www.hacklab.to/.env.example new file mode 100644 index 0000000..20e2c69 --- /dev/null +++ b/hosts/www.hacklab.to/.env.example @@ -0,0 +1,6 @@ +WORDPRESS_COMMIT=089b8a678d367e26e1d6a34fe6bd3fb6684dea3f +MEDIAWIKI_COMMIT=6012f0f7c5a637f6c01d1470809e68379fc6787c +MEMBERS_WEB_COMMIT=9209141a945a33466cc2eb0495381be01b5ee7fd +MEMBERS_POSTGRES_URL=postgresql://members:redacted@192.168.155.7:5432/members?sslmode=disable +MEMBERS_REDIS_URL=redis://:redactede@192.168.155.7:6379 +LDAP_SELFSERVICE_PASSWORD=redacted diff --git a/hosts/www.hacklab.to/docker-compose.yml b/hosts/www.hacklab.to/docker-compose.yml new file mode 100644 index 0000000..39f3716 --- /dev/null +++ b/hosts/www.hacklab.to/docker-compose.yml @@ -0,0 +1,32 @@ +services: + wordpress: + image: ghcr.io/hacklabto/wordpress:${WORDPRESS_COMMIT} + ports: ["[::1]:18883:8080"] + volumes: + - "/opt/wordpress/wp-config.php:/app/wordpress/wp-config.php" + - "/opt/wordpress/uploads/:/app/wordpress/wp-content/uploads/:rw" + + knowledge: + image: ghcr.io/hacklabto/mediawiki:${MEDIAWIKI_COMMIT} + ports: ["[::1]:18882:8080"] + volumes: + - "/opt/knowledge/LocalSettings.php:/app/mediawiki/LocalSettings.php" + - "/opt/knowledge/images:/app/mediawiki/images" + + wiki: + image: ghcr.io/hacklabto/mediawiki:${MEDIAWIKI_COMMIT} + ports: ["[::1]:18881:8080"] + volumes: + - "/opt/wiki/LocalSettings.php:/app/mediawiki/LocalSettings.php" + - "/opt/wiki/images:/app/mediawiki/images" + + members-platform-web: + image: ghcr.io/hacklabto/members-platform:${MEMBERS_WEB_COMMIT} + ports: ["[::1]:18884:18884"] + entrypoint: "/usr/local/bin/hl-web" + environment: + - "LDAP_URL=192.168.133.90:636" + - "SMTP_URL=192.168.155.8:587" + - "DATABASE_URL=${MEMBERS_POSTGRES_URL}" + - "REDIS_URL=${MEMBERS_REDIS_URL}" + - "LDAP_SELFSERVICE_PASSWORD=${LDAP_SELFSERVICE_PASSWORD}"