fp/docker-compose.yml

89 lines
2.4 KiB
YAML
Raw Normal View History

2025-01-11 13:26:38 +00:00
services:
2025-01-29 07:15:42 +00:00
opentracker:
image: anthonyzou/opentracker:latest
2025-01-11 13:26:38 +00:00
ports:
2025-01-29 07:15:42 +00:00
- "6969:6969/tcp"
- "6969:6969/udp"
2025-01-11 13:26:38 +00:00
volumes:
2025-01-29 07:15:42 +00:00
- ./packages/opentracker/opentracker.conf:/etc/opentracker.conf:ro
2025-01-11 13:26:38 +00:00
bright:
container_name: bright
build:
context: .
dockerfile: dockerfiles/bright.dockerfile
2025-01-15 02:51:12 +00:00
target: dev
args:
- MIX_ENV=dev
2025-01-11 13:26:38 +00:00
environment:
MIX_ENV: dev
PORT: "4000"
2025-01-12 07:43:30 +00:00
DATABASE_HOSTNAME: db
2025-01-15 02:51:12 +00:00
SUPERSTREAMER_URL: http://superstreamer-api:52001
PUBLIC_S3_ENDPOINT: https://fp-dev.b-cdn.net
2025-01-11 13:26:38 +00:00
env_file:
- .kamal/secrets.development
ports:
- '4000:4000'
depends_on:
- db
2025-01-15 02:51:12 +00:00
# volumes:
# - ./services/bright/lib:/app/lib
2025-01-16 20:23:58 +00:00
# volumes:
# - /home/cj/Documents/ueberauth_patreon:/app/contrib/ueberauth_patreon
2025-01-15 03:29:54 +00:00
develop:
watch:
2025-01-16 20:23:58 +00:00
- path: ./services/bright/
2025-01-15 03:29:54 +00:00
target: /app/
2025-01-16 20:23:58 +00:00
action: sync
- path: ./services/bright/application.ex
2025-01-15 03:29:54 +00:00
target: /app/lib/bright/application.ex
2025-01-16 20:23:58 +00:00
action: sync+restart
- path: ./services/bright/config/config.exs
target: /app/lib/bright/config/config.exs
action: sync+restart
- path: ./services/bright/config/runtime.exs
target: /app/lib/bright/config/runtime.exs
action: sync+restart
# @todo we need "docker@27.5.0" in devbox.json because we need docker compose >= `v2.32.0` for `sync+exec` feature.
# For now, we don't have `sync+exec` support which means docker image rebuilds are required when updating mix.exs
# - path: ./services/bright/mix.exs
# action: sync+exec
# target: /app/mix.exs
# exec:
# command: mix deps.get
- path: ./services/bright/mix.exs
2025-01-15 03:29:54 +00:00
target: /app/mix.exs
2025-01-16 20:23:58 +00:00
action: sync+restart
# - path: /home/cj/Documents/ueberauth_patreon
# action: sync
# target: /app/contrib/ueberauth_patreon
2025-01-11 13:26:38 +00:00
db:
image: postgres:15
2025-01-11 16:55:47 +00:00
container_name: futureporn-db
2025-01-11 13:26:38 +00:00
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
2025-01-12 06:47:17 +00:00
POSTGRES_DB: bright
2025-01-11 13:26:38 +00:00
volumes:
- pg_data:/var/lib/postgresql/data
ports:
- '5432:5432'
pgadmin:
image: dpage/pgadmin4
ports:
- '5050:5050'
depends_on:
- db
environment:
PGADMIN_LISTEN_PORT: "5050"
env_file:
- .kamal/secrets.development
volumes:
pg_data:
redis_data: