mirror of
https://github.com/aykhans/oh-my-url.git
synced 2025-04-08 15:04:01 +00:00
44 lines
841 B
YAML
44 lines
841 B
YAML
version: "3.9"
|
|
|
|
|
|
services:
|
|
ohmyurl-postgres:
|
|
container_name: "ohmyurl-postgresql"
|
|
image: postgres:16.1-alpine
|
|
ports:
|
|
- "5432:5432"
|
|
env_file:
|
|
- ./config/postgresql/.env
|
|
volumes:
|
|
- ohmyurl_postgresqo_data:/var/lib/postgresql/data
|
|
init: true
|
|
|
|
ohmyurl-web:
|
|
container_name: "ohmyurl-web"
|
|
build: .
|
|
image: ohmyurl-web:1.1
|
|
environment:
|
|
- DB=postgres
|
|
env_file:
|
|
- ./app/config/postgres.env
|
|
ports:
|
|
- "8080:8080"
|
|
- "8081:8081"
|
|
depends_on:
|
|
- ohmyurl-postgres
|
|
init: true
|
|
|
|
ohmyurl-nginx:
|
|
container_name: "ohmyurl-nginx"
|
|
image: nginx:1.25.3-alpine
|
|
ports:
|
|
- 80:80
|
|
volumes:
|
|
- ./config/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
|
|
depends_on:
|
|
- ohmyurl-web
|
|
init: true
|
|
|
|
volumes:
|
|
ohmyurl_postgresqo_data:
|