-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.test.yml
81 lines (77 loc) · 2.2 KB
/
docker-compose.test.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
75
76
77
78
79
80
81
services:
mongo:
build:
context: './'
dockerfile: mongo.Dockerfile
restart: always
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=admin
- MONGO_INITDB_DATABASE=jury
- MONGO_REPLICA_SET_NAME=rs0
ports:
- 27017:27017
networks:
- jury-dev-network
mongorssetup:
depends_on:
- 'mongo'
image: mongo:latest
environment:
- MONGODB_USER=admin
- MONGODB_PASS=admin
volumes:
- .:/scripts
restart: "no"
entrypoint: [ 'bash', '/scripts/init-mongo-rs.sh' ]
networks:
- jury-dev-network
go-dev:
depends_on:
- 'mongo'
- 'mongorssetup'
container_name: jury-dev-backend
environment:
- MONGODB_URI=mongodb://admin:admin@mongo:27017/
- JURY_ADMIN_PASSWORD=${JURY_ADMIN_PASSWORD}
- EMAIL_HOST=${EMAIL_HOST}
- EMAIL_PORT=${EMAIL_PORT}
- EMAIL_FROM=${EMAIL_FROM}
- EMAIL_FROM_NAME=${EMAIL_FROM_NAME}
- EMAIL_USERNAME=${EMAIL_USERNAME}
- EMAIL_PASSWORD=${EMAIL_PASSWORD}
- SENDGRID_API_KEY=${SENDGRID_API_KEY}
- VITE_JURY_NAME=${JURY_NAME}
- PORT=8000
build:
context: './'
dockerfile: dev.Dockerfile
ports:
- 8000:8000
volumes:
- ./server:/jury
networks:
- jury-dev-network
go-test:
depends_on:
- 'mongo'
- 'mongorssetup'
- 'go-dev'
container_name: jury-testing
environment:
- MONGODB_URI=mongodb://admin:admin@mongo:27017/
- LOG_LEVEL=${LOG_LEVEL:-info}
- ADMIN_PASSWORD=${JURY_ADMIN_PASSWORD}
- API_URL=http://go-dev:8000/api
build:
context: './'
dockerfile: tests/Dockerfile
ports:
- 8001:8001
volumes:
- ./tests:/jury
networks:
- jury-dev-network
networks:
jury-dev-network:
driver: bridge