blob: db17206f4893be0d63cdc4299f816618eee726ea [file] [log] [blame]
Adrià Vilanova Martínez4f5b8342021-09-03 22:30:53 +02001version: "3"
2
3services:
4 envoy:
5 build:
6 context: ./docker/envoy
7 image: twpt-server/envoy
8 ports:
9 - "10123:8081"
10 depends_on:
11 - server
12 networks:
13 - backend
14 server:
15 build:
16 context: .
17 dockerfile: ./cmd/server/Dockerfile
18 image: twpt-server/golang-server
19 entrypoint: ["/sbin/tini", "--", "/server", "--db=root:@tcp(db)/twpt", "--port=10000"]
Adrià Vilanova Martínez63f94862021-09-03 23:07:24 +020020 ports:
21 - "10124:10000"
Adrià Vilanova Martínez4f5b8342021-09-03 22:30:53 +020022 depends_on:
23 - db
24 networks:
25 - backend
26 db:
27 image: mariadb
28 environment:
29 MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
30 MARIADB_DATABASE: twpt
31 networks:
32 - backend
33
34networks:
35 backend: