-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
75 lines (73 loc) · 1.65 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# docker-compose file to run golang server
version: '3'
services:
auth-grpc:
build:
dockerfile: ./apps/auth/Dockerfile
context: .
target: dev
container_name: auth-grpc-app
hostname: auth-grpc-app
working_dir: /github.com/eduaravila/momo/apps/auth
command: sh -c "air -c .air-grpc.toml"
environment:
- ENV=development
env_file:
- .env.development
volumes:
- ./apps/auth:/github.com/eduaravila/momo/apps/auth
ports:
- "3002:3002"
restart: always
networks:
- postgres-auth
depends_on:
- postgres-auth
auth-http:
build:
dockerfile: ./apps/auth/Dockerfile
context: .
target: dev
container_name: auth-http-app
hostname: auth-http-app
working_dir: /github.com/eduaravila/momo/apps/auth
command: sh -c "air -c .air-http.toml"
environment:
- ENV=development
env_file:
- .env.development
volumes:
- ./apps/auth:/github.com/eduaravila/momo/apps/auth
ports:
- "3001:3001"
restart: always
networks:
- postgres-auth
depends_on:
- postgres-auth
postgres-auth:
container_name: postgres-auth
image: postgres:15.1-alpine
ports:
- "5433:5432"
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=postgres
restart: always
networks:
- postgres-auth
volumes:
- postgresdata:/var/lib/postgresql/data
redis:
image: redis:6.2.1-alpine
ports:
- "6379:6379"
restart: always
networks:
postgres-auth:
name: postgres-auth-network
driver: bridge
volumes:
postgresdata:
driver: local