blob: ca974addcf996a64a64ed15308f3b20e04a38781 [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
Adrià Vilanova Martínez559c2532021-09-24 20:12:52 +020014 restart: unless-stopped
Adrià Vilanova Martínez4f5b8342021-09-03 22:30:53 +020015 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"]
Adrià Vilanova Martínez63f94862021-09-03 23:07:24 +020021 ports:
22 - "10124:10000"
Adrià Vilanova Martínez4f5b8342021-09-03 22:30:53 +020023 depends_on:
24 - db
25 networks:
26 - backend
Adrià Vilanova Martínez559c2532021-09-24 20:12:52 +020027 restart: unless-stopped
Adrià Vilanova Martínez4f5b8342021-09-03 22:30:53 +020028 db:
29 image: mariadb
30 environment:
31 MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
32 MARIADB_DATABASE: twpt
33 networks:
34 - backend
Adrià Vilanova Martínez559c2532021-09-24 20:12:52 +020035 restart: unless-stopped
Adrià Vilanova Martínez4f5b8342021-09-03 22:30:53 +020036
37networks:
38 backend: