use stack
This commit is contained in:
parent
9e4575c343
commit
3eaa83d0df
@ -2,14 +2,16 @@
|
|||||||
services:
|
services:
|
||||||
|
|
||||||
|
|
||||||
# caddy:
|
caddy:
|
||||||
# image: caddy:alpine
|
image: caddy:alpine
|
||||||
# ports:
|
ports:
|
||||||
# - "8081:80"
|
- "80:80"
|
||||||
# volumes:
|
- "443:443"
|
||||||
# - ./public:/srv
|
volumes:
|
||||||
# - ./Caddyfile:/etc/caddy/Caddyfile
|
- ./public:/srv
|
||||||
|
- ./Caddyfile:/etc/caddy/Caddyfile
|
||||||
|
networks:
|
||||||
|
- our
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
container_name: our-postgres
|
container_name: our-postgres
|
||||||
@ -29,6 +31,8 @@ services:
|
|||||||
retries: 5
|
retries: 5
|
||||||
start_period: 10s
|
start_period: 10s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
|
networks:
|
||||||
|
- our
|
||||||
|
|
||||||
pgadmin:
|
pgadmin:
|
||||||
image: dpage/pgadmin4:latest
|
image: dpage/pgadmin4:latest
|
||||||
@ -39,18 +43,24 @@ services:
|
|||||||
PGADMIN_DISABLE_POSTFIX: true
|
PGADMIN_DISABLE_POSTFIX: true
|
||||||
ports:
|
ports:
|
||||||
- "5050:5050"
|
- "5050:5050"
|
||||||
|
networks:
|
||||||
|
- our
|
||||||
|
|
||||||
|
|
||||||
our:
|
our:
|
||||||
build:
|
image: gitea.futureporn.net/futureporn/our:latest
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
container_name: our-app
|
container_name: our-app
|
||||||
ports:
|
ports:
|
||||||
- "5000:5000"
|
- "5000:5000"
|
||||||
env_file: .env.production ## @see ./src/config/env.ts for all env var names.
|
env_file: .env.production ## @see ./src/config/env.ts for all env var names.
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
postgres:
|
||||||
|
condition: service_healthy
|
||||||
|
network:
|
||||||
|
- our
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
pgdata:
|
pgdata:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
our:
|
Loading…
x
Reference in New Issue
Block a user