-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (48 loc) · 1.09 KB
/
docker-compose.yml
File metadata and controls
53 lines (48 loc) · 1.09 KB
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
version: '3'
services:
web:
image: "app_web"
build:
context: .
dockerfile: "Dockerfile"
command: "tail -f /dev/null"
environment:
DATABASE_URL: psql://postgres:password@db/app
env_file:
- "./.env"
volumes:
- ".:/app"
- "packages:/usr/local/lib/python3.7/site-packages/"
ports:
- "8000:8000"
depends_on:
- db
- redis
- webpack
webpack:
image: "app_web"
command: "yarn dev"
volumes:
- ".:/app"
tty: false
stdin_open: false
db:
image: "postgres:alpine"
environment:
- "POSTGRES_USER=postgres"
- "POSTGRES_PASSWORD=password"
volumes:
- "db:/var/lib/postgresql/data"
ports:
- "5432:5432"
redis:
image: "redis:5-alpine"
volumes:
- "redis-data:/data"
volumes:
db:
driver: local
redis-data:
driver: local
packages:
driver: local