Adrià Vilanova MartÃnez | f7ee658 | 2021-09-02 21:53:28 +0200 | [diff] [blame] | 1 | version: "3" |
| 2 | |
| 3 | services: |
| 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 | |
| 37 | networks: |
| 38 | backend: |