From bb92ba114cc00211471cf9440597f00a3a52c40a Mon Sep 17 00:00:00 2001 From: ari melody Date: Sun, 10 Nov 2024 05:58:05 +0000 Subject: [PATCH] update docker compose example --- .gitignore | 3 ++- docker-compose.example.yml | 23 +++++++++++++++++++++++ docker-compose.yml | 26 -------------------------- 3 files changed, 25 insertions(+), 27 deletions(-) create mode 100644 docker-compose.example.yml delete mode 100644 docker-compose.yml diff --git a/.gitignore b/.gitignore index c179122..cccde2b 100644 --- a/.gitignore +++ b/.gitignore @@ -4,5 +4,6 @@ db/ tmp/ test/ uploads/ -docker-compose-test.yml +docker-compose*.yml +!docker-compose.example.yml config*.toml diff --git a/docker-compose.example.yml b/docker-compose.example.yml new file mode 100644 index 0000000..7833201 --- /dev/null +++ b/docker-compose.example.yml @@ -0,0 +1,23 @@ +services: + web: + image: docker.arimelody.me/arimelody.me:latest + build: . + ports: + - 8080:8080 + volumes: + - ./uploads:/app/uploads + - ./config.toml:/app/config.toml + environment: + ARIMELODY_CONFIG: config.toml + db: + image: postgres:16.1-alpine3.18 + volumes: + - arimelody-db:/var/lib/postgresql/data + environment: + POSTGRES_DB: # your database name here! + POSTGRES_USER: # your database user here! + POSTGRES_PASSWORD: # your database password here! + +volumes: + arimelody-db: + external: true diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 3f3e4a4..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,26 +0,0 @@ -services: - web: - image: docker.arimelody.me/arimelody.me:latest - build: . - ports: - - 8080:8080 - volumes: - - ./uploads:/app/uploads - environment: - ARIMELODY_PORT: 8080 - ARIMELODY_HTTP_DOMAIN: "https://arimelody.me" - ARIMELODY_DB_HOST: db - ARIMELODY_DB_NAME: arimelody - ARIMELODY_DB_USER: arimelody - ARIMELODY_DB_PASS: fuckingpassword - DISCORD_ADMIN: # your discord user ID. - DISCORD_CLIENT: # your discord OAuth client ID. - DISCORD_SECRET: # your discord OAuth secret. - db: - image: postgres:16.1-alpine3.18 - volumes: - - ./db:/var/lib/postgresql/data - environment: - POSTGRES_DB: arimelody - POSTGRES_USER: arimelody - POSTGRES_PASSWORD: fuckingpassword