blob: 3e19820135a579385ea74d9f842554437c2843c4 [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"]
20 depends_on:
21 - db
22 networks:
23 - backend
24 db:
25 image: mariadb
26 environment:
27 MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
28 MARIADB_DATABASE: twpt
29 networks:
30 - backend
31
32networks:
33 backend: