-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-ci.yml
49 lines (45 loc) · 1.22 KB
/
docker-compose-ci.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
version: '3.7'
services:
mongo:
command: [--auth]
container_name: 'mongo-container'
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_ROOT_USER}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_ROOT_PASSWORD}
MONGO_SUPERUSER_USER: ${SUPERUSER_USER}
MONGO_SUPERUSER_PASSWORD: ${SUPERUSER_PASSWORD}
MONGO_DB_NAME: ${DB_NAME}
build:
context: ./mongo-init
node:
container_name: 'gosyp-server'
depends_on:
- mongo
build:
context: ./server
dockerfile: Dockerfile.server
args:
FRONTEND_URL: ${FRONTEND_URL}
# Probably shouldn't make a habit of this, but
# for the purposes of spinning up the containers
# for ephemeral e2e tests in CI this should be fine.
MONGO_SUPERUSER_USER: ${SUPERUSER_USER}
MONGO_SUPERUSER_PASSWORD: ${SUPERUSER_PASSWORD}
MONGO_DB_NAME: ${DB_NAME}
web:
container_name: 'gosyp-client'
depends_on:
- node
build:
context: ./client
dockerfile: Dockerfile.client
puppeteer:
container_name: 'puppeteer'
depends_on:
- web
build:
context: ./e2e
dockerfile: Dockerfile.e2e
args:
FRONTEND_URL: ${FRONTEND_URL}