services: app: build: . ports: - "1664:1664" volumes: - /path/to/serviceAccountKey.json:/var/www/cpolis/serviceAccountKey.json - /var/log/cpolis.log:/var/log/cpolis.log depends_on: - db db: image: mariadb:latest environment: MYSQL_ROOT_PASSWORD: example MYSQL_DATABASE: cpolis MYSQL_USER: exampleuser MYSQL_PASSWORD: examplepass ports: - "3306:3306" volumes: - ./path/to/create_db.sql:/docker-entrypoint-initdb.d/create_db.sql