-
Notifications
You must be signed in to change notification settings - Fork 288
/
docker-compose.demo.yml
57 lines (51 loc) · 1.11 KB
/
docker-compose.demo.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
55
56
57
# docker-compose for Pootle development.
#
# Note: Requires docker-compose 1.10+.
version: "2.4"
services:
# Postgres based demo image
demo:
image: translate/pootle:demo
extends:
file: docker-compose.yml
service: base-postgres
environment:
- LOCAL_USER_ID=${LOCAL_USER_ID:-}
build:
args:
- BUILD_IMAGE=demo
depends_on:
- db-demo
- redis
- elasticsearch
links:
- "db-demo:postgres"
ports:
- "8000:8000"
# Data volume with demo database
db-demo:
image: translate/pootle:db-demo
restart: always
environment:
- POSTGRES_USER=pootle
- POSTGRES_PASSWORD=CHANGEME
- POSTGRES_DB=pootledb
elasticsearch:
extends:
file: docker-compose.yml
service: elasticsearch
postgres:
extends:
file: docker-compose.yml
service: postgres
volumes:
- postgres-demo-data:/var/lib/postgresql/data
redis:
extends:
file: docker-compose.yml
service: redis
volumes:
- redis-demo-data:/data
volumes:
postgres-demo-data:
redis-demo-data: