summaryrefslogtreecommitdiff
path: root/rushs/eplace/server/docker-compose.yml
diff options
context:
space:
mode:
authorMartial Simon <msimon_fr@hotmail.com>2025-09-15 01:08:27 +0200
committerMartial Simon <msimon_fr@hotmail.com>2025-09-15 01:08:27 +0200
commitc9b6b9a5ca082fe7c1b6f58d7713f785a9eb6a5c (patch)
tree3e4f42f93c7ae89a364e4d51fff6e5cec4e55fa9 /rushs/eplace/server/docker-compose.yml
add: graphs et rushs
Diffstat (limited to 'rushs/eplace/server/docker-compose.yml')
-rw-r--r--rushs/eplace/server/docker-compose.yml56
1 files changed, 56 insertions, 0 deletions
diff --git a/rushs/eplace/server/docker-compose.yml b/rushs/eplace/server/docker-compose.yml
new file mode 100644
index 0000000..f0419b9
--- /dev/null
+++ b/rushs/eplace/server/docker-compose.yml
@@ -0,0 +1,56 @@
+version: '3.9'
+services:
+ postgres:
+ image: registry.cri.epita.fr/ing/assistants/public/registry/postgres:15.2-alpine
+ container_name: postgres
+ restart: always
+ environment:
+ POSTGRES_USER: postgres
+ POSTGRES_PASSWORD: postgres
+ POSTGRES_DB: eplace
+ expose:
+ - 5432
+ volumes:
+ - postgres-data:/var/lib/postgresql/data
+ # Proper docker-compose would use named networks
+ # networks:
+ # - postgres-network
+ redis:
+ image: registry.cri.epita.fr/ing/assistants/public/registry/redis:7.0.9-alpine
+ container_name: redis
+ restart: always
+ expose:
+ - 6379
+ volumes:
+ - redis-data:/data
+ # Proper docker-compose would use named networks
+ # networks:
+ # - redis-network
+ eplace:
+ image: registry.cri.epita.fr/ing/assistants/public/registry/eplace:latest
+ container_name: eplace
+ restart: always
+ environment:
+ NODE_ENV: production
+ volumes:
+ - ./config:/usr/src/app/config
+ - type: 'bind'
+ source: './.env'
+ target: '/usr/src/app/.env'
+ ports:
+ - 3000:3000
+ - 3333:3333
+ # Proper docker-compose would use named networks
+ # networks:
+ # - postgres-network
+ # - redis-network
+ depends_on:
+ - postgres
+ - redis
+volumes:
+ postgres-data:
+ redis-data:
+ # Proper docker-compose would use named networks
+ # networks:
+ # postgres-network:
+ # redis-network: