-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (47 loc) · 1.01 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
51
services:
redis:
image: redis:7.4.1-alpine3.20
container_name: sharetube-redis
entrypoint: redis-server --requirepass ${REDIS_PASSWORD}
ports:
- ${REDIS_PORT}:${REDIS_PORT}
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 1s
timeout: 1s
retries: 10
networks:
- sharetube
server:
container_name: sharetube-server
build:
dockerfile: Dockerfile
env_file:
- .env
ports:
- ${SERVER_PORT}:${SERVER_PORT}
restart: unless-stopped
depends_on:
redis:
condition: service_healthy
networks:
- sharetube
# nginx:
# image: nginx:latest
# volumes:
# - ./nginx.conf:/etc/nginx/nginx.conf:ro
# - ./ssl:/etc/ssl:ro # For SSL certificates
# ports:
# - "80:80"
# - "443:443"
# depends_on:
# redis:
# condition: service_started
# server:
# condition: service_started
# networks:
# - sharetube
networks:
sharetube:
volumes:
certs: