diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-18 14:36:57 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-18 14:36:57 +0200 |
commit | 1f2822597b63c82ab453f5750c105a228c2dc75e (patch) | |
tree | caa4e210f5b995023722948bf2877f234959d625 /docker-compose.yml | |
parent | fix default cdn endpoint for message attachments (diff) | |
download | server-1f2822597b63c82ab453f5750c105a228c2dc75e.tar.xz |
Revert "fix: make API dockerfile use correct setup steps"
This reverts commit da7a87d3917463a8464cd32567ecb0c102d4bf34.
Diffstat (limited to 'docker-compose.yml')
-rw-r--r-- | docker-compose.yml | 44 |
1 files changed, 8 insertions, 36 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index 3dca75fb..5861e12f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,52 +1,24 @@ ---- version: "3" - services: db: hostname: fosscord_db - image: postgres:latest + image: mongo:latest volumes: - - db_data:/var/lib/postgres + - ./db:/data/db restart: unless-stopped - ports: - - 5432:5432 - environment: - POSTGRES_USER: fosscord - POSTGRES_DATABASE: fosscord - POSTGRES_PASSWORD: fosscord - api: - build: - context: . - dockerfile: api/Dockerfile + hostname: fosscord_api + image: fosscord/api depends_on: - db ports: - 3001:3001 - env_file: .env - + env_file: ./.docker/env gateway: - build: - context: . - dockerfile: gateway/Dockerfile + hostname: fosscord_gateway + image: fosscord/gateway depends_on: - db ports: - 3002:3002 - env_file: .env - - cdn: - build: - context: . - dockerfile: cdn/Dockerfile - depends_on: - - db - ports: - - 3003:3003 - volumes: - - cdn_data:/data - env_file: .env - -volumes: - db_data: {} - cdn_data: {} + env_file: ./.docker/env \ No newline at end of file |