-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.dev.yaml
66 lines (62 loc) · 1.52 KB
/
compose.dev.yaml
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
58
59
60
61
62
63
64
65
66
version: "3"
services:
app:
build:
context: .
dockerfile: ./docker/go/Dockerfile.dev
container_name: go-app
ports:
- 8080:8080
volumes:
- ./:/app
environment:
- ENV=${ENV}
- SECRET_KEY=${SECRET_KEY}
- FROM_EMAIL=${FROM_EMAIL}
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- DB_NAME=${DB_NAME}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- SSL_MODE=${SSL_MODE}
- IMAGE_KIT_PUBLIC_KEY=${IMAGE_KIT_PUBLIC_KEY}
- IMAGE_KIT_PRIVATE_KEY=${IMAGE_KIT_PRIVATE_KEY}
- IMAGE_KIT_URL_ENDPOINT=${IMAGE_KIT_URL_ENDPOINT}
- SWAGGER_USERNAME=${SWAGGER_USERNAME}
- SWAGGER_PASSWORD=${SWAGGER_PASSWORD}
depends_on:
- db
- mailhog
db:
image: postgres:15
container_name: postgres-db
ports:
- "5432:5432"
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_EXTENSIONS: uuid-ossp
volumes:
- db_data:/var/lib/postgresql/data
pgadmin:
image: dpage/pgadmin4:latest
container_name: pgadmin
ports:
- "5050:80"
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
depends_on:
- db
volumes:
- pgadmin_data:/var/lib/pgadmin
mailhog:
image: mailhog/mailhog:latest
container_name: mailhog
ports:
- "8025:8025"
- "1025:1025"
volumes:
db_data:
pgadmin_data: