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"] |
| 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 | |
| 32 | networks: |
| 33 | backend: |