forked from mozilla/pontoon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (45 loc) · 1.15 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
# docker-compose for Pontoon development.
#
# Note: Requires docker-compose 1.10+.
version: "2"
services:
# Pontoon base image
# This image handles user creation and permissions, so that code can be
# shared from your local folder into the docker container.
base:
build:
context: .
dockerfile: ./docker/Dockerfile.base
image: local/pontoon_base
# Webapp app
webapp:
build:
context: .
dockerfile: ./docker/Dockerfile
image: local/pontoon
env_file:
- docker/config/webapp.env
environment:
- LOCAL_USER_ID=1000
depends_on:
- postgresql
command: ["/app/docker/run_webapp.sh"]
ports:
- "8000:8000"
- "3000:3000"
volumes:
- ./pontoon:/app/pontoon
- ./frontend/src:/app/frontend/src
- ./frontend/public:/app/frontend/public
- ./tests:/app/tests
# git is used to run only tests that changed
- ./.git:/app/.git
postgresql:
build:
context: ./docker/postgres
dockerfile: ./Dockerfile
environment:
# Create the superuser account
- POSTGRES_USER=pontoon
- POSTGRES_PASSWORD=asdf
- POSTGRES_DB=pontoon