aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
blob: 52ebb08632164a942c4bf140c831a515840202d3 (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
27
28
version: '3'

services:
  db:
    image: postgres:14-alpine
    environment:
      POSTGRES_PASSWORD: postgres
    ports:
      - 54321:5432
    volumes:
      - dbdata:/var/lib/postgresql/data
  api:
    build:
      context: .
      cache_from:
        - eu.gcr.io/slam-lang/slam-example-api:latest
    image: eu.gcr.io/slam-lang/slam-example-api
    environment:
      PORT: 3000
      NEWRELIC_LICENSE_KEY: ${NEWRELIC_LICENSE_KEY}
      PGHOST: db
    ports:
      - 3000:3000
    volumes:
      - ./src:/app/src

volumes:
  dbdata: