about summary refs log tree commit diff
path: root/docker-compose.yml
blob: ff815abbc2b1678da17153e75e177496daa139c4 (plain)
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
version: "3.8"
services:
  server:
    build:
      context: .
    container_name: shorest-server
    ports:
      - "127.0.0.1:${PORT}:80"
    depends_on:
      - postgres
    links:
      - postgres:postgres
    environment:
      - PORT
      - POSTGRES_PASSWORD
  postgres:
    image: "postgres:alpine"
    container_name: shorest-postgres
    volumes:
      - database:/var/lib/postgresql/data
    environment:
      - POSTGRES_DB=shorest
      - POSTGRES_PASSWORD

volumes:
  database: