-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 929 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 929 Bytes
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
version: "2.1"
services:
server:
build:
context: .
dockerfile: ./Dockerfile
environment:
PSQL_DATABASE: ${PSQL_NAME}
PSQL_USER: ${PSQL_USERNAME}
PSQL_PASSWORD: ${PSQL_PASSWORD}
PSQL_DATABASE_HOST: db
PSQL_DATABASE_PORT: 5432
REDIS_HOST: redis
REDIS_PORT: 6379
TZ: ${TZ}
restart: always
volumes:
- ./carwings/:/app/carwings/
- ./staticfiles/:/app/staticfiles/
- ./mediafiles/:/app/mediafiles/
- ./logs/:/app/logs/
ports:
- "${BACKEND_PORT}:80"
- "${TCPSERVER_PORT}:55230"
db:
image: postgres:14
environment:
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_DB: ${PSQL_NAME}
POSTGRES_USER: ${PSQL_USERNAME}
POSTGRES_PASSWORD: ${PSQL_PASSWORD}
volumes:
- psql_data:/var/lib/postgresql/data
restart: unless-stopped
redis:
image: redis:7
volumes:
psql_data: