-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (46 loc) · 1.16 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
version: '3.8'
services:
postgres:
image: postgres:latest
container_name: auth_postgres_container
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
volumes:
- ./shield/pg-data:/var/lib/postgresql/data
ports:
- '5433:5432'
healthcheck:
test: ["CMD", "pg_isready", "-h", "localhost", "-p", "5432", "-q", "-U", "postgres"]
interval: 5s
timeout: 3s
retries: 5
redis:
image: redis:latest
container_name: auth_redis_container
ports:
- '6378:6379'
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
shield-go-app:
build: ./shield
container_name: auth_shield_app_container
ports:
- '8080:8080'
- '8010:8010'
- '8011:8011'
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
command: bash -c "go run ./migrator/main.go && go run ./main.go ./packages.go"
react-app:
build: ./shield-fe-app
container_name: auth_shield_fe_app_container
ports:
- '3000:80'