summaryrefslogtreecommitdiffstats
path: root/deploy/docker-compose.postgres-prod.yml
blob: 0060139ca5cc6eaf9be0eb7ece743fccfee8b394 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
version: '3'
services:
  pantsu:
    build:
      context: ..
      dockerfile: deploy/Dockerfile
    command: ./deploy/init.sh
    env_file:
      - postgres-prod.env
    environment:
      - PANTSU_INTERNAL_PORT=${PANTSU_INTERNAL_PORT}
    network_mode: "host"
    ports:
      # 0.0.0.0 makes it accessible to the network
      # You may want to remove it to make pantsu available only
      # to localhost
      - 0.0.0.0:${PANTSU_EXTERNAL_PORT}:${PANTSU_INTERNAL_PORT}
    volumes:
      - "${GOPATH}:/go/"
      - "./..:/nyaa"