forked from mozilla/pontoon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (38 loc) · 875 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
# docker-compose for Pontoon development.
#
# Note: Requires docker-compose 1.10+.
version: '2.3'
services:
server:
build:
context: .
dockerfile: ./docker/Dockerfile
target: server
image: local/pontoon
env_file:
- docker/config/server.env
depends_on:
- postgresql
ports:
- '8000:8000'
volumes:
- ./pontoon:/app/pontoon
- ./requirements:/app/requirements
- ./tag-admin:/app/tag-admin
- ./translate:/app/translate
- ~/.ssh:/home/pontoon/.ssh
# Database
postgresql:
build:
context: ./docker/postgres
dockerfile: ./Dockerfile
environment:
# Create the superuser account
- POSTGRES_USER=pontoon
- POSTGRES_PASSWORD=asdf
- POSTGRES_DB=pontoon
volumes:
- pgdata:/var/lib/postgresql/data
# Persist database
volumes:
pgdata: null