diff --git a/WYGIWYH/compose.yaml b/WYGIWYH/compose.yaml new file mode 100644 index 0000000..43a3d93 --- /dev/null +++ b/WYGIWYH/compose.yaml @@ -0,0 +1,22 @@ +services: + web: + image: eitchtee/wygiwyh:latest + container_name: ${SERVER_NAME} + ports: + - "${OUTBOUND_PORT:-8000}:${INTERNAL_PORT:-8000}" + env_file: + - .env + depends_on: + - db + restart: unless-stopped + + db: + image: postgres:15-bookworm + container_name: ${DB_NAME} + restart: unless-stopped + volumes: + - ./postgres_data:/var/lib/postgresql/data/ + environment: + - POSTGRES_USER=${SQL_USER} + - POSTGRES_PASSWORD=${SQL_PASSWORD} + - POSTGRES_DB=${SQL_DATABASE} \ No newline at end of file diff --git a/WYGIWYH/example.env b/WYGIWYH/example.env new file mode 100644 index 0000000..8d9d871 --- /dev/null +++ b/WYGIWYH/example.env @@ -0,0 +1,7 @@ +# ContainerName +SERVER_NAME=wygiwyh +# Database Config +DB_NAME=sql-database +SQL_USER=username +SQL_PASSWORD=changeme +SQL_DATABASE=changeme \ No newline at end of file