mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-10 12:42:44 +01:00
53 lines
1017 B
YAML
53 lines
1017 B
YAML
---
|
|
version: "3"
|
|
|
|
services:
|
|
db:
|
|
hostname: fosscord_db
|
|
image: postgres:latest
|
|
volumes:
|
|
- db_data:/var/lib/postgres
|
|
restart: unless-stopped
|
|
ports:
|
|
- 5432:5432
|
|
environment:
|
|
POSTGRES_USER: fosscord
|
|
POSTGRES_DATABASE: fosscord
|
|
POSTGRES_PASSWORD: fosscord
|
|
|
|
api:
|
|
build:
|
|
context: .
|
|
dockerfile: api/Dockerfile
|
|
depends_on:
|
|
- db
|
|
ports:
|
|
- 3001:3001
|
|
env_file: .env
|
|
|
|
gateway:
|
|
build:
|
|
context: .
|
|
dockerfile: gateway/Dockerfile
|
|
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: {}
|