-
Notifications
You must be signed in to change notification settings - Fork 103
/
docker-compose.yml
48 lines (42 loc) · 1.01 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
# Example docker-compose.yml (for local development), exposing timestrap on localhost:8899
version: "3"
services:
timestrap:
container_name: timestrap
build: .
command: daphne timestrap.asgi:application --port 8899 --bind 0.0.0.0 -v2
ports:
- "8899:8899"
environment:
- DJANGO_SETTINGS_MODULE=timestrap.settings.docker
- SECRET_KEY=super-secret-key
- POSTGRES_DB=timestrap
- POSTGRES_USER=timestrap
- POSTGRES_PASSWORD=timestrap
depends_on:
- db
- redis
networks:
- timestrap_network
db:
image: postgres
container_name: timestrap_postgres
environment:
- POSTGRES_DB=timestrap
- POSTGRES_USER=timestrap
- POSTGRES_PASSWORD=timestrap
- PGDATA=/db-data
volumes:
- timestrapdb:/db-data
networks:
- timestrap_network
redis:
image: redis
container_name: timestrap_redis
networks:
- timestrap_network
networks:
timestrap_network:
external: false
volumes:
timestrapdb: {}