-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdocker-compose.yml
54 lines (52 loc) · 1.21 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
version: '3.7'
services:
django:
image: caim-django:latest
build: .
restart: on-failure
environment:
- PRODUCTION=0
- DEBUG=1
- MEDIA_USE_S3=0
- SECRET_KEY='dfdfeferewrewrewrrerewr'
- DB_HOST=postgres
- DB_PORT=5432
- DB_USER=postgres
- DB_PASSWORD=postgres
- DB_NAME=postgres
- IMAGE_RESIZE_USE_IMAGKIT=0
- EMAIL_ENABLED=0
- URL_PREFIX='http://127.0.0.1:8000'
- SALESFORCE_ENABLED=0
- SALESFORCE_USERNAME='<username>'
- SALESFORCE_PASSWORD='<pwd>'
- SALESFORCE_SECURITY_TOKEN='<token>'
volumes:
- ./:/app
ports:
- '8000:8000'
depends_on:
- postgres
command: python manage.py runserver 0.0.0.0:8000
postgres:
container_name: postgres
image: postgis/postgis:14-3.3
platform: linux/amd64
restart: on-failure
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
logging:
options:
max-size: 10m
max-file: "3"
ports:
- '5432:5432'
volumes:
- caim_pg:/var/lib/postgresql
- caim_pgdata:/var/lib/postgresql/data
volumes:
caim_pg:
name: "caim-pg"
caim_pgdata:
name: "caim-pg-data"