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 |
Adrià Vilanova Martínez | 559c253 | 2021-09-24 20:12:52 +0200 | [diff] [blame] | 14 | restart: unless-stopped |
Adrià Vilanova Martínez | 4f5b834 | 2021-09-03 22:30:53 +0200 | [diff] [blame] | 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"] |
Adrià Vilanova Martínez | 63f9486 | 2021-09-03 23:07:24 +0200 | [diff] [blame] | 21 | ports: |
| 22 | - "10124:10000" |
Adrià Vilanova Martínez | 4f5b834 | 2021-09-03 22:30:53 +0200 | [diff] [blame] | 23 | depends_on: |
| 24 | - db |
| 25 | networks: |
| 26 | - backend |
Adrià Vilanova Martínez | 559c253 | 2021-09-24 20:12:52 +0200 | [diff] [blame] | 27 | restart: unless-stopped |
Adrià Vilanova Martínez | 4f5b834 | 2021-09-03 22:30:53 +0200 | [diff] [blame] | 28 | db: |
Renovate bot | 7273235 | 2023-12-30 00:06:25 +0000 | [diff] [blame] | 29 | image: mariadb@sha256:9da6213d1a5714c4585c9c0003c51510b320d6f60e53d78701fe1e194126249f |
Adrià Vilanova Martínez | 4f5b834 | 2021-09-03 22:30:53 +0200 | [diff] [blame] | 30 | environment: |
| 31 | MYSQL_ALLOW_EMPTY_PASSWORD: "yes" |
| 32 | MARIADB_DATABASE: twpt |
| 33 | networks: |
| 34 | - backend |
Adrià Vilanova Martínez | 559c253 | 2021-09-24 20:12:52 +0200 | [diff] [blame] | 35 | restart: unless-stopped |
Adrià Vilanova Martínez | 4f5b834 | 2021-09-03 22:30:53 +0200 | [diff] [blame] | 36 | |
| 37 | networks: |
| 38 | backend: |