-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-prod.yaml
55 lines (52 loc) · 1.24 KB
/
docker-compose-prod.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: "3.9"
services:
backend:
container_name: johnjud-backend
restart: unless-stopped
build: .
ports:
- 3003:3003
environment:
- APP_PORT=3003
- APP_ENV=production
- DB_URL=postgres://root:root@johnjud-local-db:5432/johnjud_db
- SERVICE_FILE=localhost:3004
networks:
- johnjud
local-file:
image: ghcr.io/isd-sgcu/johnjud-file
container_name: johnjud-file
depends_on:
- local-db
restart: unless-stopped
environment:
- APP_PORT=3004
- APP_ENV=production
- DB_URL=postgres://root:root@johnjud-local-db:5432/johnjud_db
- BUCKET_ENDPOINT=BUCKET_ENDPOINT
- BUCKET_ACCESS_KEY=BUCKET_ACCESS_KEY
- BUCKET_SECRET_KEY=BUCKET_SECRET_KEY
- BUCKET_NAME=johnjud-pet-images
- BUCKET_USE_SSL=false
ports:
- "3004:3004"
networks:
- johnjud
local-db:
image: postgres:15.1-alpine3.17
container_name: johnjud-local-db
restart: unless-stopped
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
POSTGRES_DB: johnjud_db
volumes:
- postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- johnjud
volumes:
postgres:
networks:
johnjud: