forked from runabol/tork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
52 lines (52 loc) · 1.04 KB
/
docker-compose.yaml
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.1"
services:
postgres:
image: postgres:15.3
restart: always
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: tork
POSTGRES_USER: tork
POSTGRES_DB: tork
rabbitmq:
image: rabbitmq:3-management
restart: always
ports:
- 5672:5672
- 15672:15672
swagger:
image: swaggerapi/swagger-ui
restart: always
ports:
- 8200:8080
environment:
SWAGGER_JSON: /code/docs/swagger.json
volumes:
- .:/code
registry:
image: registry:2
restart: always
ports:
- 5001:5001
web:
image: runabol/tork-web
platform: linux/amd64
restart: always
ports:
- 8100:8100
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
BACKEND_URL: "http://host.docker.internal:8000"
migration:
image: golang:1.21
working_dir: /code
environment:
- TORK_CONFIG=configs/config.compose.toml
command: |
go run cmd/main.go migration
volumes:
- .:/code
depends_on:
- postgres