-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
41 lines (37 loc) · 955 Bytes
/
Copy pathcompose.yml
File metadata and controls
41 lines (37 loc) · 955 Bytes
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
29
30
31
32
33
34
35
36
37
38
39
40
41
version: "3"
name: "6_pay_my_buddy"
services:
postgres:
image: "docker.io/postgres:latest"
restart: "unless-stopped"
environment:
- "POSTGRES_DB=${DATABASE_DB}"
- "POSTGRES_USER=${DATABASE_USER}"
- "POSTGRES_PASSWORD=${DATABASE_PASSWORD}"
- "PGPORT=${DATABASE_PORT}"
ports:
- "5432:${DATABASE_PORT}"
migration:
depends_on:
- "postgres"
restart: "no"
environment:
- "DATABASE_URL=postgres://${DATABASE_USER}:${DATABASE_PASSWORD}@${DATABASE_HOSTNAME}:${DATABASE_PORT}/${DATABASE_DB}"
volumes:
- "./migrations:/app/migrations"
build:
context: "."
dockerfile: "./docker/Dockerfile.migration"
backend:
restart: "unless-stopped"
env_file: ".env"
ports:
- "${SERVER_PORT}:${SERVER_PORT}"
volumes:
- "./src:/app/src"
build:
context: "."
dockerfile: "./docker/Dockerfile.backend"
volumes:
migrations:
backend: