-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev.yml
51 lines (45 loc) · 1.09 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
version: "3.8"
services:
postgres:
extends:
file: docker-compose.yml
service: postgres
networks:
- database
migrate:
extends:
file: docker-compose.yml
service: migrate
whosbest:
image: cosmtrek/air:latest
working_dir: /whosbest
expose:
- 3000
entrypoint: ["air", "-c", ".air.toml"]
deploy:
replicas: 1
networks:
- database
- loadbalancer
volumes:
- ./:/whosbest
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_HOST=${POSTGRES_HOST}
- POSTGRES_PORT=${POSTGRES_PORT}
- JWT_SECRET=${JWT_SECRET}
nginx:
extends:
file: docker-compose.yml
service: nginx
networks:
- loadbalancer
volumes:
data:
networks:
database:
driver: bridge
loadbalancer:
driver: bridge