-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
66 lines (61 loc) · 1.52 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
63
64
65
66
version: "3.8"
services:
db:
image: postgres:16
container_name: ${PROJECT_NAME}-db
environment:
- POSTGRES_DB=${CANE_DATABASE_NAME}
- POSTGRES_USER=${CANE_DATABASE_USER}
- POSTGRES_PASSWORD=${CANE_DATABASE_PASSWORD}
volumes:
- pgdata:/var/lib/postgresql/data/:rw
ports:
- ${EXPOSED_DATABASE_PORT}:5432
env_file:
- .env
jaggery:
image: mucize-jaggery
container_name: ${PROJECT_NAME}-jaggery
build:
context: ./jaggery
dockerfile: Dockerfile
command: ["uwsgi", "--http", "0.0.0.0:8000", "--master", "-p", "4", "-w", "config.wsgi:application"]
env_file:
- .env
volumes:
- ./sugarlib:/app/sugarlib
- ./jaggery:/app/jaggery
- ./content:/app/content
- .env:/app/.env
ports:
- ${EXPOSED_CANE_DJ_PORT}:8000
depends_on:
- redis
- db
sugarcane:
image: mucize-sugarcane
container_name: ${PROJECT_NAME}-server
build:
context: ./sugarcane
dockerfile: Dockerfile
ports:
- "${EXPOSED_CANE_SERVER_PORT}:5000"
volumes:
- ./sugarlib:/app/sugarlib
- ./sugarcane:/app/sugarcane
- ./content:/app/content
- .env:/app/.env
command: ["uwsgi", "--http", "0.0.0.0:5000", "--master", "-p", "4", "-w", "sugarcane.app:app"]
env_file:
- .env
depends_on:
- redis
redis:
image: "redis:alpine"
container_name: ${PROJECT_NAME}-redis
ports:
- "${EXPOSED_REDIS_PORT}:6379"
env_file:
- .env
volumes:
pgdata: