---
# System prepended metadata

title: How to Setup Fitcon Environment

---

# How to Setup Fitcon Environment
## Prerequirement
Please make sure the internet connection is established and can access AWS services.
## Setup steps
1. Put fitcon.sh under ```/root/fitcon```
2. Run ```fitcon.sh precode``` to pull fitcon images and create the containers.
```sh=
/root/fitcon/fitcon.sh precode 
```
3. Use ```docker images``` and ```docker ps``` to make sure the docker containers is running properly, the version of fitcon is 0.0.18 now:
![](https://i.imgur.com/KM8R6di.png)
There are 7 images and containers currently: ```[epc-api, epc-mdns, epc-radius, epc-db, epc-agent, epc-raccoon, epc-otter]```

4. Run the following command to init database
```sh=
docker exec -it epc-api sh -c "python3 db-init.pyc -i"
```

5. If database initialize success, the following messages will be printed:
![](https://i.imgur.com/4OTlHj4.png)

6. The Fitcon environment setup is complete, use ```https:{$IP}:8080``` to access Fitcon web page to make sure Fitcon is running properly
![](https://i.imgur.com/VMaBrUO.png)

7. If the sign up page appears, everything should be done. DO NOT sign up if the Fitcon is used for precode.