-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (40 loc) · 1.03 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: "3.9"
services:
db:
image: mariadb:11.5.2
restart: always
environment:
MYSQL_ROOT_PASSWORD: I@mR00t
MYSQL_DATABASE: asteroids
ports:
- "3306:3306"
volumes:
- ./dbinit:/docker-entrypoint-initdb.d
extra_hosts:
- "host.docker.internal:host-gateway"
api:
env_file:
- api/.env
build:
dockerfile: api/Dockerfile
context: ./
container_name: asteroids-api
image: fullaware/asteroids-api:latest
ports:
- "8088:8088"
extra_hosts:
- "host.docker.internal:host-gateway"
app:
env_file:
- app/.env
build:
dockerfile: app/Dockerfile
context: ./
container_name: asteroids-app
image: fullaware/asteroids-app:latest
ports:
- "8080:8080"
links:
- api
extra_hosts:
- "host.docker.internal:host-gateway"