-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (47 loc) · 1.17 KB
/
docker-compose.yml
File metadata and controls
52 lines (47 loc) · 1.17 KB
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
version: "3.5"
services:
db:
image: postgres
container_name: "db"
environment:
# - POSTGRES_SERVER=db
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=pass
- POSTGRES_DB=db
ports:
- 5432:5432
postgrest:
image: postgrest/postgrest
container_name: "postgrest"
environment:
- "PGRST_DB_URI=postgres://admin:pass@db:5432/db"
- "PGRST_DB_SCHEMAS=api"
- "PGRST_DB_ANON_ROLE=web_anon"
- "PGRST_JWT_SECRET=${AUTH_API_SECRET_KEY}"
- "PGRST_OPENAPI_MODE=follow-privileges"
ports:
- 3001:3000
auth_api:
build: ./api/auth
image: yannbeauxis/ema_scraper_auth_api
container_name: "auth_api"
env_file:
- .env
environment:
- "PORT=8000"
ports:
- 8000:8000
swagger_ui:
image: swaggerapi/swagger-ui
environment:
- "SWAGGER_JSON_URL=http://localhost:3001/"
ports:
- 8080:8080
docker_hoster:
# To be able to access to docker containers names in dns resolution.
image: dvdarias/docker-hoster
container_name: "docker_hoster"
restart: always
volumes:
- /var/run/docker.sock:/tmp/docker.sock
- /etc/hosts:/tmp/hosts