xref: /conch/docker-compose.yml (revision 41ac65be)
1# vim: se syn=yaml shiftwidth=2 et ts=2:
2---
3version: '3.3'
4services:
5  postgres:
6    image: postgres:9.6
7    container_name: conch_postgres
8    restart: always
9    environment:
10      POSTGRES_USER: conch
11      POSTGRES_PASSWORD: conch
12      POSTGRES_DB: conch
13    volumes:
14      - ./postgres:/var/lib/postgresql/data
15
16  web:
17    image: joyentbuildops/conch-api:latest
18    container_name: conch_api
19    restart: always
20    read_only: true
21    user: nobody
22
23    entrypoint: ["carton", "exec"]
24    command: ["hypnotoad", "-f", "bin/conch" ]
25
26    environment:
27      POSTGRES_USER: conch
28      POSTGRES_PASSWORD: conch
29      POSTGRES_DB: conch
30      POSTGRES_HOST: postgres
31    ports:
32      - 5000:5000
33    volumes:
34      - type: tmpfs
35        target: /tmp
36        tmpfs:
37          size: 1000
38      - type: bind
39        source: ./log
40        target: /app/conch/log
41      - type: bind
42        source: ./conch.conf
43        target: /app/conch/etc/conch.conf
44        read_only: true
45    depends_on:
46      - postgres
47
48