-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathdocker-compose.yml
74 lines (66 loc) · 1.83 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: "3.4"
services:
api:
build:
context: .
dockerfile: src/CleanArchitecture.Api/Dockerfile
image: ${DOCKER_REGISTRY}cleanarchitecture/api:${TAG:-latest}
profiles: ["server", "cd"]
web:
build:
context: .
dockerfile: src/CleanArchitecture.Web/Dockerfile
image: ${DOCKER_REGISTRY}cleanarchitecture/web:${TAG:-latest}
profiles: ["web", "cd"]
migrations:
build:
context: .
dockerfile: src/CleanArchitecture.Migrations/Dockerfile
image: ${DOCKER_REGISTRY}cleanarchitecture/migrations:${TAG:-latest}
profiles: ["server", "cd"]
#if (UseSqlServer)
sql:
image: mcr.microsoft.com/mssql/server:2019-latest
profiles: ["dev"]
container_name: cleanarchitecture-sql
user: root
ports:
- 1433:1433
environment:
- ACCEPT_EULA=Y
- "MSSQL_SA_PASSWORD=Admin1234!"
volumes:
- cleanarchitecture-sql:/var/opt/mssql/data
#else
postgres:
image: postgres:latest
profiles: ["dev"]
container_name: cleanarchitecture-postgres
ports:
- 5432:5432
environment:
- POSTGRES_USER=postgres
- "POSTGRES_PASSWORD=Admin1234!"
- POSTGRES_DB=Weather
volumes:
- cleanarchitecture-postgres:/var/lib/postgresql
#endif
ui-tests:
build:
context: .
dockerfile: tests/CleanArchitecture.AcceptanceTests/Dockerfile
args:
PAT: ${PAT}
image: ${DOCKER_REGISTRY}cleanarchitecture/acceptancetests:${TAG:-latest}
container_name: weather-acceptancetests${TAG:-dev}
environment:
- Browser__Headless=true
- Browser__SlowMoMilliseconds=150
- Browser__BaseUrl=${BaseUrl}
profiles: ["ui-tests"]
volumes: # this volume ensures that data is persisted when the container is deleted
#if (UseSqlServer)
cleanarchitecture-sql:
#else
cleanarchitecture-postgres:
#endif