-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (46 loc) · 1.16 KB
/
docker-compose.yml
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
services:
api:
restart: always
image: ${DOCKER_REGISTRY-}micro-media:latest
build:
context: ./api
dockerfile: Dockerfile
env_file:
- ./api/prod.env
ports: [] # See docker-compose.override.yml.example
networks:
- default
depends_on:
- postgres
volumes:
- ./api/certs:/app/certs:ro
- ./api/api_keys.json:/app/api_keys.json:ro
- ./api/media.yml:/app/media.yml:ro
- ./api/storage.yml:/app/storage.yml:ro
# - ./api/jwt_pub.pem:/app/jwt_pub.pem:ro # JWT's RS256 public key
postgres:
image: postgres:16-bookworm
restart: always
networks:
- default
env_file:
- ./postgres/prod.env
volumes:
- ./postgres/init.sql:/docker-entrypoint-initdb.d/init.sql:ro # Init script
- /var/lib/postgresql/micro-media:/var/lib/postgresql/data # Data
imgproxy:
image: darthsim/imgproxy:v3.2
restart: always
ports: [] # See docker-compose.override.yml.example
networks:
- default
env_file:
- ./imgproxy/prod.env
redis:
image: redis:7.2-alpine
restart: always
networks:
- default
networks:
default:
driver: bridge