Adrià Vilanova Martínez | 4f5b834 | 2021-09-03 22:30:53 +0200 | [diff] [blame] | 1 | version: "3" |
| 2 | |
| 3 | services: |
| 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ínez | 63f9486 | 2021-09-03 23:07:24 +0200 | [diff] [blame] | 20 | ports: |
| 21 | - "10124:10000" |
Adrià Vilanova Martínez | 4f5b834 | 2021-09-03 22:30:53 +0200 | [diff] [blame] | 22 | 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 | |
| 34 | networks: |
| 35 | backend: |