mirror of
https://github.com/KeyZox71/knl_meowscendence.git
synced 2025-08-14 20:42:53 +02:00
「🏗️」 wip: moved the rest to external compose file
This commit is contained in:
31
docker/api-base/compose.yml
Normal file
31
docker/api-base/compose.yml
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
services:
|
||||||
|
user-api:
|
||||||
|
container_name: transcendence-api-user
|
||||||
|
build:
|
||||||
|
dockerfile: docker/api-base/Dockerfile
|
||||||
|
context: ..
|
||||||
|
volumes:
|
||||||
|
- db-user:/db
|
||||||
|
networks:
|
||||||
|
- front
|
||||||
|
- back
|
||||||
|
environment:
|
||||||
|
- TZ=Europe/Paris
|
||||||
|
- API_TARGET=user
|
||||||
|
- JWT_SECRET=${JWT_SECRET}
|
||||||
|
restart: unless-stopped
|
||||||
|
auth-api:
|
||||||
|
container_name: transcendence-api-auth
|
||||||
|
build:
|
||||||
|
dockerfile: docker/api-base/Dockerfile
|
||||||
|
context: ..
|
||||||
|
volumes:
|
||||||
|
- db-auth:/db
|
||||||
|
networks:
|
||||||
|
- front
|
||||||
|
- back
|
||||||
|
environment:
|
||||||
|
- TZ=Europe/Paris
|
||||||
|
- API_TARGET=auth
|
||||||
|
- JWT_SECRET=${JWT_SECRET}
|
||||||
|
restart: unless-stopped
|
@ -4,53 +4,5 @@ include:
|
|||||||
- ./volumes.yml
|
- ./volumes.yml
|
||||||
- ./networks.yml
|
- ./networks.yml
|
||||||
- ./monitoring/compose.yml
|
- ./monitoring/compose.yml
|
||||||
|
- ./api-base/compose.yml
|
||||||
services:
|
- ./front/compose.yml
|
||||||
front:
|
|
||||||
container_name: transcendence-front
|
|
||||||
build:
|
|
||||||
dockerfile: docker/front/Dockerfile
|
|
||||||
context: ..
|
|
||||||
ports:
|
|
||||||
- ${OUT_PORT}:443
|
|
||||||
environment:
|
|
||||||
- SERVER_NAME=localhost
|
|
||||||
- TZ=Europe/Paris
|
|
||||||
depends_on:
|
|
||||||
user-api:
|
|
||||||
condition: service_started
|
|
||||||
auth-api:
|
|
||||||
condition: service_started
|
|
||||||
networks:
|
|
||||||
- front
|
|
||||||
restart: unless-stopped
|
|
||||||
user-api:
|
|
||||||
container_name: transcendence-api-user
|
|
||||||
build:
|
|
||||||
dockerfile: docker/api-base/Dockerfile
|
|
||||||
context: ..
|
|
||||||
volumes:
|
|
||||||
- db-user:/db
|
|
||||||
networks:
|
|
||||||
- front
|
|
||||||
- back
|
|
||||||
environment:
|
|
||||||
- TZ=Europe/Paris
|
|
||||||
- API_TARGET=user
|
|
||||||
- JWT_SECRET=${JWT_SECRET}
|
|
||||||
restart: unless-stopped
|
|
||||||
auth-api:
|
|
||||||
container_name: transcendence-api-auth
|
|
||||||
build:
|
|
||||||
dockerfile: docker/api-base/Dockerfile
|
|
||||||
context: ..
|
|
||||||
volumes:
|
|
||||||
- db-auth:/db
|
|
||||||
networks:
|
|
||||||
- front
|
|
||||||
- back
|
|
||||||
environment:
|
|
||||||
- TZ=Europe/Paris
|
|
||||||
- API_TARGET=auth
|
|
||||||
- JWT_SECRET=${JWT_SECRET}
|
|
||||||
restart: unless-stopped
|
|
||||||
|
19
docker/front/compose.yml
Normal file
19
docker/front/compose.yml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
services:
|
||||||
|
front:
|
||||||
|
container_name: transcendence-front
|
||||||
|
build:
|
||||||
|
dockerfile: docker/front/Dockerfile
|
||||||
|
context: ..
|
||||||
|
ports:
|
||||||
|
- ${OUT_PORT}:443
|
||||||
|
environment:
|
||||||
|
- SERVER_NAME=localhost
|
||||||
|
- TZ=Europe/Paris
|
||||||
|
depends_on:
|
||||||
|
user-api:
|
||||||
|
condition: service_started
|
||||||
|
auth-api:
|
||||||
|
condition: service_started
|
||||||
|
networks:
|
||||||
|
- front
|
||||||
|
restart: unless-stopped
|
Reference in New Issue
Block a user