-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (35 loc) · 792 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (35 loc) · 792 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
version: '2'
services:
redis:
container_name: redis
image: redis:alpine
ports:
- 6379:6379
depends_on:
- database
database:
container_name: "database"
image: postgres:9.6.4-alpine
ports:
- 5432:5432
environment:
POSTGRES_USER: username
POSTGRES_PASSWORD: password
POSTGRES_DB: test
web:
build:
context: .
dockerfile: ./docker/Dockerfile
command: /env/bin/simple-service runserver -h 0.0.0.0 -p 5000
ports:
- 5000:5000
links:
- database
- redis
depends_on:
- redis
- database
environment:
DEBUG: 'True'
SECRET_KEY: asdklfjeoja039rjdlkjfaoi3rdk
DATABASE_URL: 'postgres://username:password@database/test'