Skip to content

Commit f802cbe

Browse files
committed
add adminer & fake SMTP
1 parent 52618c7 commit f802cbe

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

compose.yaml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ services:
2222
volumes:
2323
- ./:/app
2424
networks:
25-
- starter-kit-network
25+
- network
2626
command:
2727
- /bin/sh
2828
- -c
@@ -31,7 +31,7 @@ services:
3131
yarn run start:dev
3232
3333
pgsql:
34-
container_name: "starter-kit-db"
34+
container_name: "starter-kit-pgsql"
3535
image: postgres:15
3636
environment:
3737
POSTGRES_PASSWORD: ${DB_PASS}
@@ -40,19 +40,33 @@ services:
4040
ports:
4141
- ${DB_EXPOSED_PORT:-8611}:5432
4242
networks:
43-
- starter-kit-network
43+
- network
4444

4545
redis:
4646
container_name: "starter-kit-redis"
4747
image: redis:7.0.5-alpine
4848
ports:
4949
- ${REDIS_EXPOSED_PORT:-8612}:6379
50-
5150
networks:
52-
- starter-kit-network
53-
51+
- network
52+
adminer:
53+
container_name: "starter-kit-adminer"
54+
image: adminer
55+
depends_on:
56+
- pgsql
57+
ports:
58+
- ${ADMINER_EXPOSED_PORT:-8613}:8080
59+
networks:
60+
- network
61+
smtp:
62+
container_name: "starter-kit-smtp"
63+
image: jcalonso/mailhog:latest
64+
ports:
65+
- ${MAILHOG_EXPOSED_PORT:-8614}:8025
66+
networks:
67+
- network
5468
networks:
55-
starter-kit-network:
69+
network:
5670
driver: bridge
5771
# The commented out section below is an example of how to define a PostgreSQL
5872
# database that your application can use. `depends_on` tells Docker Compose to

0 commit comments

Comments
 (0)