-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (58 loc) · 1.22 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
52
53
54
55
56
57
58
59
60
61
62
services:
main:
container_name: main
build:
context: .
dockerfile: ./Dockerfile
env_file:
- .env
depends_on:
postgres:
condition: service_started
redis:
condition: service_started
restart: always
ports:
- "127.0.0.1:8800:8800"
networks:
- Pumpkin-network
volumes:
- pumpkin-user-uploads:${USER_UPLOADS_DIR}
postgres:
env_file:
- .env
container_name: postgres
image: postgres:latest
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
ports:
- "${POSTGRES_PORT}:5432"
networks:
- Pumpkin-network
volumes:
- pumpkin-db-data:/var/lib/postgresql/data
redis:
container_name: redis
image: redis:latest
command:
- /bin/sh
- -c
- redis-server --requirepass ${REDIS_PASSWORD}
volumes:
- pumpkin-redis-data:/var/lib/redis/data
ports:
- "${REDIS_PORT}:6379"
env_file:
- .env
networks:
- Pumpkin-network
networks:
Pumpkin-network:
name: Pumpkin-network
driver: bridge
volumes:
pumpkin-db-data:
pumpkin-redis-data:
pumpkin-user-uploads: