-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
51 lines (46 loc) · 1012 Bytes
/
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
version: '3'
services:
db:
image: postgres
restart: always
environment:
DATABASE_NAME: hottip
POSTGRES_USER: hottip
POSTGRES_PASSWORD: password
ports:
- 5432:5432
web:
image: hottip
build: .
command: python manage.py runserver 0.0.0.0:8080
environment:
DATABASE_TYPE: postgresql
DATABASE_HOST: db
DATABASE_NAME: hottip
DATABASE_USER: hottip
DATABASE_PASSWORD: password
HOTTIP_BATCH_MODE: 0
ports:
- 8080:8080
depends_on:
- db
volumes:
- .:/app
batch:
image: hottip
build: .
command: python manage.py runserver 0.0.0.0:8080
env_file: .env
environment:
DATABASE_TYPE: postgresql
DATABASE_HOST: db
DATABASE_NAME: hottip
DATABASE_USER: hottip
DATABASE_PASSWORD: password
DJANGO_MANAGEPY_MIGRATE: "on"
DJANGO_MANAGEPY_CREATESUPERUSER: "on"
HOTTIP_BATCH_MODE: 1
depends_on:
- db
volumes:
- .:/app