-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·55 lines (52 loc) · 1.34 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
services:
api:
container_name: auction_nest_api_dev
build:
context: .
dockerfile: ./docker/development/Dockerfile
ports:
- "3030:3000"
networks:
- default
- traefik-public
volumes:
- .:/app
environment:
DATABASE_URL: postgresql://postgres:postgres@db:5432/auction?schema=public
MAIL_PORT: 1025
MAIL_FROM: [email protected]
depends_on:
- db
command: yarn start:dev
labels:
- traefik.docker.network=traefik-public
- traefik.enable=true
- traefik.http.routers.api.rule=Host(`api.localhost`)
- traefik.http.routers.api.entrypoints=web
db:
container_name: auction_nest_db_dev
image: postgres:14.1
ports:
- "5433:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: auction
mailer:
container_name: auction_nest_mailer_dev
image: mailhog/mailhog
ports:
- 1025:1025
- 8025:8025
networks:
- default
- traefik-public
labels:
- traefik.docker.network=traefik-public
- traefik.enable=true
- traefik.http.routers.mailer.rule=Host(`mailer.localhost`)
- traefik.http.routers.mailer.entrypoints=web
- traefik.http.services.mailer.loadBalancer.server.port=8025
networks:
traefik-public:
external: true