-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (43 loc) · 956 Bytes
/
docker-compose.yml
File metadata and controls
47 lines (43 loc) · 956 Bytes
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
version: '3.8'
services:
optiquery-backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "8080:8080"
environment:
- GIN_MODE=debug
- PORT=8080
- DB_HOST=postgres
- DB_PORT=5432
- DB_NAME=optiquery_test
- DB_USER=test_user
- DB_PASSWORD=test_password
volumes:
- ./backend:/app
- ./examples:/app/examples
working_dir: /app
command: go run main.go test_setup.go
depends_on:
- postgres
networks:
- optiquery-network
postgres:
image: postgres:15
environment:
POSTGRES_DB: optiquery_test
POSTGRES_USER: test_user
POSTGRES_PASSWORD: test_password
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./examples:/docker-entrypoint-initdb.d
networks:
- optiquery-network
volumes:
postgres_data:
networks:
optiquery-network:
driver: bridge