forked from mozilla/pontoon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (48 loc) · 1.07 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
49
50
51
# docker-compose for Pontoon development.
#
# Note: Requires docker-compose 1.10+.
version: "2.3"
services:
frontend:
build:
context: .
dockerfile: ./docker/Dockerfile
target: frontend
image: local/pontoon-frontend
ports:
- "3000:3000"
volumes:
- ./frontend/src:/frontend/src
- ./frontend/public:/frontend/public
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
- ./tests:/app/tests
- ./requirements:/app/requirements
- ~/.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