-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose-dev.yml
57 lines (55 loc) · 1.18 KB
/
docker-compose-dev.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
56
57
version: '3.9'
services:
postgresqldb:
image: postgres:16.2-alpine
restart: on-failure
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=root
- POSTGRES_DB=speedyauth
migratedb:
image: migrate/migrate
volumes:
- ./db/migrations:/migrations
entrypoint:
[
"migrate",
"-path",
"/migrations",
"-database",
"postgres://postgres:root@postgresqldb:5432/speedyauth?sslmode=disable",
]
command: ["up"]
depends_on:
- postgresqldb
links:
- postgresqldb
restart: on-failure
app:
depends_on:
- postgresqldb
- migratedb
build: .
restart: on-failure
ports:
- "8080:8080"
environment:
- PG_HOST=postgresqldb
- PG_USER=postgres
- PG_PASSWORD=root
- PG_DB=speedyauth
- PG_PORT=5432
- SMTP_HOST=mailhog
- SMTP_PORT=1025
- SERVER_PORT=8080
- SERVER_ADDRESS=
- PG_SSL=False
- TOKEN_EXPIRY_TIME=15m
- ISSUER_NAME=localhost
- FROM_EMAIL_ADDRESS=noreply@localhost
mailhog:
image: mailhog/mailhog:latest
restart: always
ports:
- 1025:1025
- 8025:8025