-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
77 lines (70 loc) · 1.5 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
76
77
version: "3.8"
services:
server:
build: server
ports:
- "80:80"
depends_on:
- db
environment:
- SESSION_KEY=thisisverysecret
volumes:
- ./sessions:/app/sessions
- ./web:/app/web
dev-server:
build: server
ports:
- "80:80"
depends_on:
- db
environment:
- SESSION_KEY=thisisverysecret
volumes:
- ./sessions:/app/sessions
- ./web:/app/web
command:
- "--dev"
server-tidy:
image: golang:1.18-alpine
working_dir: /app
command: go mod tidy
volumes:
- ./server:/app
adminer:
image: adminer
ports:
- "8080:8080"
depends_on:
- db
db:
image: mariadb:10
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: space_tycoon
volumes:
- ./database:/docker-entrypoint-initdb.d
ports:
- "3306:3306"
server-gen:
image: openapitools/openapi-generator-cli
command: >
generate
-i /api/swagger.yaml
-g go-server
-o /server/gen
--global-property models,supportingFiles
--additional-properties=outputAsLibrary=true,packageName=stycoon
volumes:
- "./api:/api"
- "./server:/server"
visualization-gen:
image: openapitools/openapi-generator-cli
command: >
generate
-i /api/swagger.yaml
-g javascript
-o /web/js/client
--additional-properties=projectName=space_tycoon_client
volumes:
- "./api:/api"
- "./web/js/client:/web/js/client"