-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (32 loc) · 903 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (32 loc) · 903 Bytes
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
version: '3.4'
services:
tictactoe.api:
image: ${DOCKER_REGISTRY-}tictactoeapi
container_name: "tictactoe.api"
build:
context: ./TicTacToe.Api
dockerfile: TicTacToe.Api/Dockerfile
ports:
- "33000:80"
- "33001:443"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ConnectionStrings__DefaultConnection=Server=tictactoe.db;Database=${POSTGRES_DB};User Id=${POSTGRES_USER};Password=${POSTGRES_PASSWORD};
volumes:
- .:/usr/src/app
depends_on:
- "tictactoe.db"
tictactoe.db:
restart: on-failure
image: "mdillon/postgis:11"
container_name: "tictactoe.db"
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- tictactoe-db:/var/lib/postgresql/data
ports:
- "33015:5432"
volumes:
tictactoe-db: