Skip to content
Snippets Groups Projects
Commit 603ef2ae authored by Bayu Samudra's avatar Bayu Samudra
Browse files

feat: adding compose deps

parent 814d9d62
Branches
1 merge request!4Add dependency at docker compose
......@@ -6,12 +6,12 @@ Repository ini adalah repository untuk OCW Backend
Ini adalah requirement untuk menjalankan template ini:
1. Go v1.19.3
1. Go v1.19.3 [MANDATORY]
2. Docker (Optional)
3. Postgresql (Optional, when using docker)
4. GNU Make 4.3 (Optional, when using docker)
5. Minio (Optional, when using docker)
6. Google wire v0.5.0 (https://github.com/google/wire)
6. Google wire v0.5.0 (https://github.com/google/wire) [MANDATORY]
7. Air command line (https://github.com/cosmtrek/air)
## Cara menjalankan
......
......@@ -25,6 +25,7 @@ services:
depends_on:
- database
- minio
- redis
networks:
- api_network
database:
......@@ -36,6 +37,21 @@ services:
volumes:
- db:/var/lib/postgresql/data
env_file: .env.docker
redis:
ports:
- 6379:6379
image: redis:latest
env_file: .env
networks:
- api_network
mailhog:
ports:
- 1025:1025
- 8025:8025
image: mailhog/mailhog:latest
env_file: .env
networks:
- api_network
networks:
api_network:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment