-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (50 loc) · 1.07 KB
/
docker-compose.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: "3.8"
services:
db-dev:
image: postgres:12.2-alpine
container_name: "quote-memo-db-dev"
ports:
- "5432:5432"
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
networks:
- fullstack
volumes:
- database_postgres:/var/lib/posgtresql/data
db-test:
image: postgres:12.2-alpine
container_name: "quote-memo-db-test"
ports:
- "5431:5432"
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
api:
build: .
container_name: "quote-memo-api"
environment:
APP_ENV: "development"
DB_USERNAME: "postgres"
DB_PASSWORD: "postgres"
DB_DB: "postgres"
DB_HOST: "db-dev"
DB_TABLE: "postgres"
DB_PORT: "5432"
CLIENT_ORIGIN: "http://localhost:3000"
ports:
- "8080:8080"
depends_on:
- db-dev
volumes:
- .:/app
command: air
networks:
- fullstack
volumes:
database_postgres:
networks:
fullstack:
driver: bridge