зеркало из https://github.com/mozilla/pontoon.git
41 строка
875 B
YAML
41 строка
875 B
YAML
# 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
|