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