Migration de la base de données : SQLite vers PostgreSQL #56
+21
-5
@@ -1,10 +1,26 @@
|
|||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
container_name: deno_fresh_app
|
image: registry.docker.polytech.djalim.fr/polympr:latest
|
||||||
build: .
|
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "8008:80"
|
||||||
- "443:443"
|
- "4430:443"
|
||||||
volumes:
|
volumes:
|
||||||
- .:/app
|
- /home/kevin/PolyMPR/:/app
|
||||||
command: deno run -A main.ts
|
command: deno run -A main.ts
|
||||||
|
deploy:
|
||||||
|
replicas: 1
|
||||||
|
placement:
|
||||||
|
constraints: [node.role == manager]
|
||||||
|
|
||||||
|
db:
|
||||||
|
image: postgres
|
||||||
|
restart: always
|
||||||
|
shm_size: 128mb
|
||||||
|
environment:
|
||||||
|
POSTGRES_PASSWORD: ${POSTGRES_PASS}
|
||||||
|
deploy:
|
||||||
|
replicas: 1
|
||||||
|
placement:
|
||||||
|
constraints: [node.role == manager]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user