diff options
author | Hayden Young <hi@hbjy.dev> | 2021-10-15 13:49:55 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-15 13:49:55 +0000 |
commit | da7a87d3917463a8464cd32567ecb0c102d4bf34 (patch) | |
tree | 3d52369beab901f93eba3861f46cd17e8f8ac2f9 /docker-compose.yml | |
parent | :bug: fix unittests (diff) | |
download | server-da7a87d3917463a8464cd32567ecb0c102d4bf34.tar.xz |
fix: make API dockerfile use correct setup steps
Diffstat (limited to 'docker-compose.yml')
-rw-r--r-- | docker-compose.yml | 44 |
1 files changed, 36 insertions, 8 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index 5861e12f..3dca75fb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,24 +1,52 @@ +--- version: "3" + services: db: hostname: fosscord_db - image: mongo:latest + image: postgres:latest volumes: - - ./db:/data/db + - db_data:/var/lib/postgres restart: unless-stopped + ports: + - 5432:5432 + environment: + POSTGRES_USER: fosscord + POSTGRES_DATABASE: fosscord + POSTGRES_PASSWORD: fosscord + api: - hostname: fosscord_api - image: fosscord/api + build: + context: . + dockerfile: api/Dockerfile depends_on: - db ports: - 3001:3001 - env_file: ./.docker/env + env_file: .env + gateway: - hostname: fosscord_gateway - image: fosscord/gateway + build: + context: . + dockerfile: gateway/Dockerfile depends_on: - db ports: - 3002:3002 - env_file: ./.docker/env \ No newline at end of file + 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: {} |