forked from Code2Gether-Discord/JokesOnYou
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
38 lines (35 loc) · 983 Bytes
/
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
version: '3.4'
networks:
jokes-on-you-dev:
driver: bridge
services:
web_api:
image: ${DOCKER_REGISTRY-}jokesonyouwebapi
build:
context: .
dockerfile: Server/JokesOnYou.Web.Api/Dockerfile
depends_on:
- "db"
ports:
- 8000:80
environment:
- "ASPNETCORE_ENVIRONMENT=Development"
- "ConnectionStrings:PostgresConnectionString=User ID=jokeuser;Password=password;Server=db;Port=5432;Database=jokesdb;Integrated Security=true;Pooling=true"
networks:
- jokes-on-you-dev
volumes:
- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
- ${APPDATA}/ASP.NET/Https:/root/.aspnet/https:ro
db:
image: postgres:latest
restart: always
ports:
- 8001:5432
environment:
POSTGRES_USER: jokeuser
POSTGRES_PASSWORD: password
POSTGRES_DB: jokesdb
networks:
- jokes-on-you-dev
volumes:
- ./jokesdb_pgdata:/var/lib/postgresql/data